Goal of this pull request is to fix a buggy behavior with the feature "close on outside click".
It happens that, by using on "click" instead on "mousedown", we can close the window by starting a click inside the modal, but, releasing it outside of it.
I found this not to be ideal, as, this is not wanted in most of the scenarios.
So, that's why I've created this PR.
Goal of this pull request is to fix a buggy behavior with the feature "close on outside click". It happens that, by using on "click" instead on "mousedown", we can close the window by starting a click inside the modal, but, releasing it outside of it.
I found this not to be ideal, as, this is not wanted in most of the scenarios. So, that's why I've created this PR.