I have some pages with file browser input. Everything works fine, but to prevent the user to click the Add Files button many times or to click in some another link in the page I want to make only the file browser window clickable (Gmail have this feature when you want to attach some file in the email for example).
I don't want to use
e.preventDefault()
Because when the user choose the file or cancel the file browser I need to enable the button again. So basically I just want to "block" clicks outside of File Browser Window.
Someone have some idea how to do it ?