Data loss when you start creating a host and accidentally click outside the pop-up window
Is your feature request related to a problem? Please describe. I recently created a bunch of hosts in quick succession because I had to migrate some sites to a new Nginx Proxy Manager at work While copying and pasting back and forth between two interfaces, I've accidentally clicked outside the pop-up window before when I was almost done creating it. And clicking it closes the pop-up, which makes me lose the info I've already entered :(
Describe the solution you'd like When you start entering information into any new creation pop-up and accidentally click somewhere else, causing it to close, the system should simply ask for confirmation to make sure that's what you intended or, as with other tools, highlight the close button
Describe alternatives you've considered
Additional context
Which version are you using?
I tested it and clicking outside the pop-up window doesn't close it. It only closes when we click the X or Cancel.
@nathaazevedo It's on version 2.14.0, and I also tested it on the last development version before 2.15 was released
It's also possible your browser does it for you, like Edge with its built-in password detection feature Could you tell me which browser you're using and your NPM version?
But otherwise, I had already started preparing a pull request that resolves this issue. if there's any kind of change in the popup and you click next to it, it displays a message and doesn't close it
This was super annoying for me on Firefox, so I've fixed it. https://github.com/NginxProxyManager/nginx-proxy-manager/pull/5977
Tested on Chrome and Firefox to make sure I didn't cause Chrome regressions.