👩💻 Join our community of thousands of amazing developers!
I decided to add some improvements to Open and fix some bugs. While I was adding two submit listeners on a form, it didn’t work. I have tried everything but still the problem came up. So, I removed return false; and used e.preventDefault();. It worked ! So, why didn’t the submit listener called on the element ? The problem was return false will do e.stopPropagation() and e.preventDefault(). If e.stopPropagation() is ran, then any other submit event handlers of the element won’t call....