IX-Modal window closes unexpectedly on MouseDown in the modal and MouseUp on the backdrop. #1663
Open
2 tasks done
Labels
needs reproduction
Bugs with the label will not be addressed until the steps to reproduce are available
triage
We discuss this topic in our internal weekly
Prerequisites
What happened?
Modal window closes unexpectedly when 'mousedown' IN the modal and 'mouseup' on the backdrop. I'm not sure if that is intended behavior. A user could for example mark the text in an input field on that modal and accidentally release LMB outside of the modal(on the backdrop).
A possible solution is to modify the ix-modal's render method and switch the onClick with the onMouseDown:
}, onClose: () => this.dismissModal(), onMouseDown: (event) => this.onModalClick(event), onCancel: (e) => {
I have already tested this and this seems to solve the issue, the only thing is I don't know if that messes up anything else.
What type of frontend framework are you seeing the problem on?
JavaScript
Which version of iX do you use?
2.6.0
Code to produce this issue.
The text was updated successfully, but these errors were encountered: