Replies: 1 comment
|
I ran into the same issue this week and thought I'd post here in case others find themselves in this situation too. It happens because, by default, the modal component is not destroyed when You override the static method like this: You can also configure this globally by publishing the configuration and changing the default behaviour. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
When calling
$this->closeModal()I am getting the above error. This is called as it is in the documentation, and I cannot locate anything else in the issues regarding this. Not sure where to start.I am calling function
confirmDelete()from awire:click()on a button in the modal to confirm the delete of a record. The record deletes properly, it runs$this->dispatch()fine, and closes the modal, but then throws the error once closed.EDIT:
After further testing, it has to do with the events. Any events fired cause the error. If I run
$this->dispatch()the error shows after close, but is present on mobile view. If it is fired with$this->closeModalWithEvents()it is displayed after closing the modal.All reactions