- Issue created by @bburg
- πΊπΈUnited States bburg Washington D.C.
This might be a whole other issue, but looking at the modal-page.js code, I see that I end up with duplicate event listeners on the OK button. This should probably be wrapped in a "once" to prevent multiple even listeners from being attached to the same elements.
- πΊπΈUnited States bburg Washington D.C.
For the OK, button, this module is using
modal.modal('hide');
The current jquery modal documentation suggests using
$.modal.close();
, which appears to work as expected. - πΊπΈUnited States bburg Washington D.C.
Attached patch can be applied to 5.0.6 (apologies, I know there are some changes in the current dev, which I realized after the fact).
It uses once to avoid attaching duplicate event handlers, and changes the call to close the modal.
- Status changed to Needs review
about 1 year ago 6:24pm 2 October 2023 - π§π·Brazil renatog Campinas
Thanks for the patch @bburg
Moving to Needs Review to test that and commit into 5.x branch
Appreciate