I have the following field with a suffix action
TextInput::make('search')
->suffixAction(Action::make('foo')
->modalCancelAction(
Action::make('cancel')
->action(function (Set $set,Action $action, $component, $livewire) {
//Why won't you close! (╯▔皿▔)╯
$livewire->close();
$action->cancelParentActions();
$action->halt();
return;
})
->cancelParentActions( )
// ->close()
// ->after(function() {...})
)
As you can see, I tried everything I could think of but the modal refuses to close!
The only thing that works is the commented out ->close() call, but then the code in the ->action() is not actually executed