Merge pull request #2837 from brkcvn/master
Selected controlled for dynamic select component
This commit is contained in:
		@@ -994,6 +994,10 @@ export default {
 | 
			
		||||
            if (this.group) {
 | 
			
		||||
                // Option set sort_option data
 | 
			
		||||
                if (! Array.isArray(options)) {
 | 
			
		||||
                    if (typeof(this.selected) == 'string') {
 | 
			
		||||
                        this.selected = '';
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
                    for (const [index, _options] of Object.entries(options)) {
 | 
			
		||||
                        let values = [];
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1203,6 +1203,10 @@ export default {
 | 
			
		||||
            if (this.group) {
 | 
			
		||||
                // Option set sort_option data
 | 
			
		||||
                if (!Array.isArray(options)) {
 | 
			
		||||
                    if (typeof(this.selected) == 'string') {
 | 
			
		||||
                        this.selected = '';
 | 
			
		||||
                    }
 | 
			
		||||
                    
 | 
			
		||||
                    for (const [index, _options] of Object.entries(options)) {
 | 
			
		||||
                        let values = [];
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -16,7 +16,8 @@
 | 
			
		||||
 | 
			
		||||
        <x-layouts.admin.menu />
 | 
			
		||||
 | 
			
		||||
        <!-- loading component will add this line -->   
 | 
			
		||||
        <!-- loading component will add this line -->
 | 
			
		||||
        <x-loading.content />
 | 
			
		||||
             
 | 
			
		||||
        <div class="main-content xl:ltr:ml-64  xl:rtl:mr-64 transition-all ease-in-out" id="panel">
 | 
			
		||||
            <div id="main-body">
 | 
			
		||||
 
 | 
			
		||||
@@ -14,8 +14,6 @@
 | 
			
		||||
    </x-slot>
 | 
			
		||||
 | 
			
		||||
    <x-slot name="content">
 | 
			
		||||
        <x-loading.content />
 | 
			
		||||
        
 | 
			
		||||
        <div class="flex flex-col space-y-16 py-4 cursor-default">
 | 
			
		||||
            <div class="flex flex-col lg:flex-row w-full lg:space-x-16 rtl:space-x-reverse space-y-0">
 | 
			
		||||
                <div class="w-full lg:w-7/12 flex flex-col space-x-2 banner">
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user