Replies: 4 comments 4 replies
-
Add |
Beta Was this translation helpful? Give feedback.
-
Thanks. I have added that versionsTailwindCSS: 3.0.15 What I triedI have implemented a very simple livewire datatable. Again, after having opened the modal, when I press the "Esc" key, the livewire datatable still works as normal. However, if I click on the "Cancel" button either these ways: 1st way:
2nd way:
My datatable stops working. Debugging errors.Actually, when I open the modal, there's this message in the console log:
Then, when I hit on the "Cancel" button, other error shows up (that causes the livewire datatable stop working):
What am I missing? How do I fix it? |
Beta Was this translation helpful? Give feedback.
-
I'm unable to replicate this issue. If you can provide a repository with a fresh install of Laravel and the dependencies above and replicating the issue I can take a further look. |
Beta Was this translation helpful? Give feedback.
-
There's something strange, even with the simplest table and Modal without using packages I get the same error. There must be something wrong now with the combination of latest npm livewire and alpineJS ... The error actually is reported by alpineJS. I'll try again as soon as Laravel 9 is released... |
Beta Was this translation helpful? Give feedback.
-
According to the official doc ... article, I can close a modal from a button click with the following:
<button wire:click="$emit('closeModal')">Close Modal</button>
After clicking on the button, the real-time validation seems to trigger anyway and yes the modal closes. After being closed, my livewire datatable stops working.
However, (I reload the page to open again the modal) when I hit the "Escape" key to close the modal, everything is working fine after the modal is closed.
Maybe there's a bug out there?
Otherwise, is there a simple or neat way to close the modal right from clicking a "cancel" button?
Meanwhile, I have just left a help text "press escape to cancel".
Beta Was this translation helpful? Give feedback.
All reactions