Open jpmschuler opened 1 year ago
If anybody could contribute an idea to this, I'd gladly write the patch. I looked into it repeatedly and can't figure out why it is that way in the first place, as the docs suggest it shouldn't be -.-
A simple hotfix to just prevent ESC/outside-click would be sufficient IMHO, an intelligent signal to the close button to "sometimes" close it would be just nice to have IMHO.
A modal edit form (TVP page module, edit page or edit content) should not close on keyboard ESC or outside mouse click if there are changes to the content.
So an ESC or outside click shouldn't just remove the modal, but rather "click the close button" in order to show the warning dialog about pending changes.