Unclear documentation on the dispose method: calling it after hide #42057
Replies: 1 comment
-
|
Hey brother, Your interpretation is reasonable, but the documentation example is brokenWaiting for the modal's completed 1. The event name is invalidThis: is not a Bootstrap event. It appears to combine parts of two different events. The relevant modal events are:
2. The methods belong to the Modal instance
You need both the element and its Bootstrap instance: 3. The listener should be registered before calling
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In JavaScript, dispose method, it mentions that there is a problem calling
disposeafter the component is hidden, but it doesn't explain much.It's listening for the end of the transitions, so it looks correct to me. What exactly is the problem there?
I've found this possibly related issue and this one, but that's all.
Beta Was this translation helpful? Give feedback.
All reactions