Skip to content

Commit 7a4d193

Browse files
committed
v4
1 parent 9fc67ff commit 7a4d193

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

resources/dist/filament-searchable-input.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/dist/filament-searchable-input.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/js/components/searchable-input.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default function searchableInput({statePath}) {
2020
this.previous_value = this.value
2121

2222
// noinspection JSPotentiallyInvalidUsageOfThis
23-
this.$wire.mountFormComponentAction(statePath, 'search', { value: this.value })
23+
this.$wire.mountAction(statePath, 'search', { value: this.value })
2424
.then(response => {
2525
this.suggestions = response
2626
this.selected_suggestion = 0
@@ -35,7 +35,7 @@ export default function searchableInput({statePath}) {
3535
this.suggestions = []
3636

3737
// noinspection JSPotentiallyInvalidUsageOfThis
38-
this.$wire.mountFormComponentAction(statePath, 'item_selected', { item: item })
38+
this.$wire.mountAction(statePath, 'item_selected', { item: item })
3939
},
4040
previous_suggestion() {
4141
this.selected_suggestion--

resources/views/components/wrapper.blade.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@php use Filament\Support\Facades\FilamentAsset; @endphp
2+
13
@props([
24
'field' => null,
35
'hasInlineLabel' => null,
@@ -11,7 +13,7 @@
1113
class="def-fo-searchable-input-wrapper relative"
1214

1315
x-load
14-
x-load-src="{{\Filament\Support\Facades\FilamentAsset::getAlpineComponentSrc('filament-searchable-input', 'defstudio/filament-searchable-input')}}"
16+
x-load-src="{{FilamentAsset::getAlpineComponentSrc('filament-searchable-input', 'defstudio/filament-searchable-input')}}"
1517
x-data="searchableInput({
1618
statePath: '{{$field->getStatePath()}}'
1719
})"

0 commit comments

Comments
 (0)