Skip to content

Commit 23fe8ea

Browse files
committed
Update async-alpine attributes
Replaced `ax-` attributes with `x-` to align with updated component standards. Adjusted loading behavior to include new event trigger and rewrote CSS and script loading attributes for consistency.
1 parent 634c5f3 commit 23fe8ea

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

resources/views/select-tree.blade.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@
1414
<div
1515
wire:key="{{ $getTreeKey() }}"
1616
wire:ignore
17-
x-ignore
1817
@if (FilamentView::hasSpaMode(url()->current()))
19-
ax-load="visible"
18+
x-load="visible || event (ax-modal-opened)"
2019
@else
21-
ax-load
20+
x-load
2221
@endif
23-
ax-load-css="{{ FilamentAsset::getStyleHref('filament-select-tree-styles', package: 'codewithdennis/filament-select-tree') }}"
24-
ax-load-src="{{ FilamentAsset::getAlpineComponentSrc('filament-select-tree', package: 'codewithdennis/filament-select-tree') }}"
22+
x-load-css="[@js(FilamentAsset::getStyleHref('filament-select-tree-styles', package: 'codewithdennis/filament-select-tree'))]"
23+
x-load-src="{{ FilamentAsset::getAlpineComponentSrc('filament-select-tree', package: 'codewithdennis/filament-select-tree') }}"
2524
x-data="selectTree({
2625
name: @js($getName()),
2726
state: $wire.{{ $applyStateBindingModifiers("\$entangle('{$getStatePath()}')") }},

0 commit comments

Comments
 (0)