uptick / react-keyed-file-browser

Folder based file browser given a flat keyed list of objects, powered by React.
MIT License
295 stars 143 forks source link

fix: stop rename and delete submit events from propagating #193

Closed adamdickinson closed 3 years ago

adamdickinson commented 3 years ago

If there's a submit event listener higher up (i.e. on document), renaming and deleting will allow that listener to fire. This shouldn't happen as the rename and delete processes should be entirely contained (hence why we have preventDefault in there.) This fixes that.

adamdickinson commented 3 years ago

Worth noting too - linked, tested and confirmed that it fixed issues we were experiencing.