Modal closing on search

I have a modal which loads a component which includes a filament table. Some fields are searchable. When I type to search, the table is automatically updated ✅ However, if I type a search term and hit enter, the modal is closed ❌ I set all the following options to prove none of them are triggering it, but it still closes.
->modalSubmitAction(false)
->modalCancelAction(false)
->modalCloseButton(false)
->closeModalByClickingAway(false)
->closeModalByEscaping(false)
->modalSubmitAction(false)
->modalCancelAction(false)
->modalCloseButton(false)
->closeModalByClickingAway(false)
->closeModalByEscaping(false)
Initial findings suggest calling halt() on the action, but as it's a search field in the filament table I don't have access to it Any ideas? Thanks
3 Replies
Adam Holmes
Adam HolmesOP3mo ago
bump
LeandroFerreira
LeandroFerreira3mo ago
maybe you could create a minimal repo on Github to reproduce this issue..
ChesterS
ChesterS3mo ago
So I ran into the same issue. Not sure how to solve it yet but I think it's because of this part on the search input
x-on:keyup="if ($event.key === 'Enter') { $wire.$refresh() }"
x-on:keyup="if ($event.key === 'Enter') { $wire.$refresh() }"
Not sure if there's a way to remove it or bind it to something else
Want results from more Discord servers?
Add your server