Lirux
Lirux
FFilament
Created by ElCoco on 8/31/2023 in #❓┊help
Can a suffixAction be triggered by pressing enter?
In case anyone is looking in the future:
TextInput::make('something')
->extraAttributes(['wire:keydown.enter.prevent' => "mountFormComponentAction('xxx', 'xxx')"])
->suffixAction(
Action::make('action')
->action(function () {
//
})
),
TextInput::make('something')
->extraAttributes(['wire:keydown.enter.prevent' => "mountFormComponentAction('xxx', 'xxx')"])
->suffixAction(
Action::make('action')
->action(function () {
//
})
),
Inspect the suffixAction and replace the mountFormComponentAction('xxx', 'xxx')
6 replies