I have a modal dialog form that pops up when a button is selected on a page.
The problem is that my mouse button seems bounce, so that one click not only brings up the modal dialog but also clicks the submit button on modal dialog if the two buttons have overlapping XY, so that the modal dialog form gets submitted before anything is filled in.
I thought I might delay the opening of the modal dialog by 100ms with setTimeout, to give the button time to settle, but my first attempt at this, below, didn't work: