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.
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 havepreventDefault
in there.) This fixes that.