Leaflet.Modal icon indicating copy to clipboard operation
Leaflet.Modal copied to clipboard

Can't find a way to transport kind of "modalResult"

Open neilyoung opened this issue 5 years ago • 3 comments
trafficstars

The issue: In a scenario like when you have a form, filling in some values and would like to abandon your changes, you can easily restore the initial configuration and call modal.hide() as result of a Cancel button click. You can't do that as response to the x button, which also closes the modal but does not restore the initial configuration to the editor.

Any chance to achieve this?

neilyoung avatar Feb 27 '20 18:02 neilyoung

Same with ESC, btw.

neilyoung avatar Feb 27 '20 18:02 neilyoung

OK, I was able to intercept the close button click and revert the changes. Now only ESC is remaining. And mouseclick into Nirvana.

neilyoung avatar Feb 27 '20 18:02 neilyoung

Hello?

neilyoung avatar Mar 02 '20 17:03 neilyoung