Current Behavior
Popups close unexpectedly when a pressed mouse button is being released (mouseup event) outside the bounds of a popup.
This is particular frustrating when there is a large chunk of text that had just been entered into a text field inside the popup.
It happens quite often (at least for me) that I press down the mouse inside the popup and release it outside, e.g. when selecting a range of text with the mouse and the margin between text field and popup bound is very small.
Steps to Reproduce
Click "Start a discussion" button
Click on 'Choose Tags'
Close popup with X (interestingly, the issue doesn't happen on the first try)
Click on 'Choose Tags' again
Press mouse button down anywhere inside the popup
Move mouse outside the popup and release the key
Popup closes
Expected Behavior
Popup only closes when clicked outside popup (mouseup and mousedown outside the popup bounds)
There's an existing pr of mine (#2570) that adds close confirmation, but for the next release of flarum, we plan to switch modals to using the native dialog element in HTML5.
Bug Report
Current Behavior Popups close unexpectedly when a pressed mouse button is being released (
mouseup
event) outside the bounds of a popup. This is particular frustrating when there is a large chunk of text that had just been entered into a text field inside the popup. It happens quite often (at least for me) that I press down the mouse inside the popup and release it outside, e.g. when selecting a range of text with the mouse and the margin between text field and popup bound is very small.Steps to Reproduce
Expected Behavior Popup only closes when clicked outside popup (mouseup and mousedown outside the popup bounds)
Environment