File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
resources/views/filament/pages Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 88 @endforeach
99 </x-filament::tabs >
1010
11- <div class =" custom-fields-component" >
11+ <div class =" custom-fields-component"
12+ x-data =" {
13+ handleDropdownClick(e) {
14+ if (!this.$el.contains(e.target)) return;
15+
16+ const trigger = e.target.closest('.fi-dropdown-trigger');
17+ if (!trigger) return;
18+
19+ this.$el.querySelectorAll('.fi-dropdown').forEach(dropdown => {
20+ if (!dropdown.contains(trigger)) {
21+ const panel = dropdown.querySelector('[x-ref=panel]');
22+ if (panel && typeof panel.close === 'function') {
23+ panel.close();
24+ }
25+ }
26+ });
27+ }
28+ }"
29+ @mousedown .window =" handleDropdownClick($event)" >
1230 <div
1331 x-sortable
1432 wire:end.stop =" updateSectionsOrder($event.target.sortable.toArray())"
You can’t perform that action at this time.
0 commit comments