Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit 17412bc

Browse files
authored
Update to use Alpine v3 init. (#25)
1 parent 993e73a commit 17412bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/views/components/inputs/custom-select.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
wireFilter: '{{ $attributes->wire('filter')->value() }}',
1010
@endif
1111
})"
12-
x-init="initialize({{ $attributes->hasStartsWith('wire:model') ? '$wire' : 'null' }}, $dispatch)"
12+
x-init="$nextTick(() => { initialize({{ $attributes->hasStartsWith('wire:model') ? '$wire' : 'null' }}, $dispatch) })"
1313
x-on:click.outside="close()"
1414
x-on:keydown.escape="close()"
1515
x-on:keydown.enter.stop.prevent="onEnter()"

0 commit comments

Comments
 (0)