Leaflet.Modal
Leaflet.Modal copied to clipboard
Can't find a way to transport kind of "modalResult"
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?
Same with ESC, btw.
OK, I was able to intercept the close button click and revert the changes. Now only ESC is remaining. And mouseclick into Nirvana.
Hello?