Closed lekoala closed 2 years ago
example here, click bsn modal dispose https://codepen.io/lekoalabe/pen/wvPygrg
this seems fixed on master
actually it's a bit tricky. if i dispose of the element like this, the element has everything set to null in aftermodalhide except the element. not sure that is the intended behaviour?
Yes
then it's fine :)
if I dispose the modal after it is hidden (in hidden.bs.modal), I get the following issue
Somehow, the element in afterModalHide are already null. It seems due to modal.dispose(). If i simply remove the element (without using dispose) it's working fine, even though it is called after (which is really odd). Not sure what is happening here
Sample code:
using the example of the docs