Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Click outside to close modal now only reacts to onMouseDown. (#768)
- Click outside to close modal now only reacts to onMouseDown. # Use case User presses mouse button inside modal, then moves pointer outside of modal and releases the mouse button. The click is registered as outside the modal and closes it. Not very nice! Now it uses onMouseDown instead of onClick, which requires the mouse down event to come from outside of modal.
- Loading branch information