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) {
|
if (this.group) {
|
||||||
// Option set sort_option data
|
// Option set sort_option data
|
||||||
if (! Array.isArray(options)) {
|
if (! Array.isArray(options)) {
|
||||||
|
if (typeof(this.selected) == 'string') {
|
||||||
|
this.selected = '';
|
||||||
|
}
|
||||||
|
|
||||||
for (const [index, _options] of Object.entries(options)) {
|
for (const [index, _options] of Object.entries(options)) {
|
||||||
let values = [];
|
let values = [];
|
||||||
|
|
||||||
|
|||||||
@@ -1203,6 +1203,10 @@ export default {
|
|||||||
if (this.group) {
|
if (this.group) {
|
||||||
// Option set sort_option data
|
// Option set sort_option data
|
||||||
if (!Array.isArray(options)) {
|
if (!Array.isArray(options)) {
|
||||||
|
if (typeof(this.selected) == 'string') {
|
||||||
|
this.selected = '';
|
||||||
|
}
|
||||||
|
|
||||||
for (const [index, _options] of Object.entries(options)) {
|
for (const [index, _options] of Object.entries(options)) {
|
||||||
let values = [];
|
let values = [];
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
<x-layouts.admin.menu />
|
<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 class="main-content xl:ltr:ml-64 xl:rtl:mr-64 transition-all ease-in-out" id="panel">
|
||||||
<div id="main-body">
|
<div id="main-body">
|
||||||
|
|||||||
@@ -14,8 +14,6 @@
|
|||||||
</x-slot>
|
</x-slot>
|
||||||
|
|
||||||
<x-slot name="content">
|
<x-slot name="content">
|
||||||
<x-loading.content />
|
|
||||||
|
|
||||||
<div class="flex flex-col space-y-16 py-4 cursor-default">
|
<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="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">
|
<div class="w-full lg:w-7/12 flex flex-col space-x-2 banner">
|
||||||
|
|||||||
Reference in New Issue
Block a user