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 Harrin2y ago
probably extraInputAttributes()
Hurruwa
HurruwaOP2y 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()",
])
Want results from more Discord servers?
Add your server