V4 wire:click and wire:change not fire in ->extraAttributes
after upgrade V3 project to V4 wire:click and wire:change not firing in many places
here wire:keydown.enter fire , but wire:change not .
6 Replies
Where are you using these and what are you trying to do?
change events are emitted on selects and inputs. And you probably need ->extraInputAttributes() this function is in Resource Create Page , to prevent save when hit enter key , and save only when click save button
the exact function work in V3
and this : on Select . and also not fire with ->extraInputAttributes()
Check the HTML. It's probably not applied not the
<select> element
Not sure why this code should prevent the form submission via Enter?In V3 prevent , it work since year ago in some of my projects . So if are there any other solution ?
Ah, probably the change from
type="submit" to type="button" did that. Probably the type is not overwritten anymore? Then I guess the only options is some JavascriptMay by Filament team add an option to create page is the best solution