wire:keydown call alpine method
I see I can use
etraInputAttributes
to add wire:keydown.enter
to an input. The method provided there will call a component method in livewire, but what if I want to call a javascript method on the alpine component? Is there a way to do that?
2 Replies
Solution
Using
x-on:keydown.enter
instead of wire:
duh...thanks.