Merge pull request #2837 from brkcvn/master

Selected controlled for dynamic select component
This commit is contained in:
Burak Civan 2022-12-19 14:41:45 +03:00 committed by GitHub
commit 4742b84e6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 3 deletions

View File

@ -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 = [];

View File

@ -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 = [];

View File

@ -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">

View File

@ -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">