- Issue created by @klaasvw
- 🇧🇪Belgium klaasvw
The MR and attached patch removes the override.
I haven't found another way to prevent having the click submit twice though. Contributions are welcome!
- 🇳🇱Netherlands askibinski
I tested a vanilla setup with 10.3.6 and 2.0.0 and can't reproduce any issues with the dialogs.
That code actually exists to disable the
LinkUI
close method for the ckeditor popup when a drupal modal is open. When the modal is closed, it re-binds the original so you can close the first (ckeditor) link ui popup.Having said that, my original code for that looks pretty brittle, with a hardcoded class:
linkUI._hideUI = () => { const modal = document.querySelectorAll('.ui-dialog-content'); if (modal.length === 0) { _hideUIOriginal.bind(linkUI).call(); } };
And maybe in your case that class does not exist? In that case the re-bind wouldnt happen explaining your issue. I would welcome a patch/MR to improve this.