F
Filament15mo ago
Hurruwa

Its there a way to hack an input field to have wire:keydown. functionality?

Im trying to apply a wire action on an input field (wire:keydown.enter="execute"). Its there a clean way to achive someting like this o should i doit through a custom input field?? thanks in advance
2 Replies
Dan Harrin
Dan Harrin15mo ago
probably extraInputAttributes()
Hurruwa
Hurruwa15mo ago
!!!INCREDIBLE would not make you justice man. Thanks a lot Make it work like this:
->extraInputAttributes([
'wire:keydown.enter' => "executeSearch()",
])
->extraInputAttributes([
'wire:keydown.enter' => "executeSearch()",
])