mousetrap icon indicating copy to clipboard operation
mousetrap copied to clipboard

stop the callback for button elements, too

Open usmonster opened this issue 10 years ago • 1 comments

Buttons are primarily used as form elements, behaving essentially as inputs. For consistency's sake, we should treat them as such and not fire the callback when the event target is a button.

Update: Expanded reasoning here.

usmonster avatar Nov 18 '13 13:11 usmonster

@ccampbell I can submit a "fine-tuned stopCallback() logic" pull request to implement my suggestions from this comment, if you agree with them. Please let me know!

usmonster avatar Nov 28 '13 11:11 usmonster