You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem with captured / stopped mouseup events when using the FlexibleModal in combination with react-switch. When clicking the switch, the mouseup event will be captured by the listener registered in componentDidMount on document.
I have a problem with captured / stopped mouseup events when using the FlexibleModal in combination with react-switch. When clicking the switch, the mouseup event will be captured by the listener registered in componentDidMount on document.
The following change fixes the problem:
onMouseUp(e: { stopPropagation: () => void; }) { document.removeEventListener('mousemove', this.onMouseMove); if (this.state.isDragging || this.state.isResizing){ this.setState({ isDragging: false }); this.setState({ isResizing: false }); e.stopPropagation(); // e.preventDefault(); } }
The text was updated successfully, but these errors were encountered: