mui-org/material-ui





[Dialog] onBackdropClick event fires when draggable item released on it #13648
apo-mcc posted onGitHub
If Dialog contains any draggable component (e.g. sortable list from react-sortable-hoc) and this component have been dragging and has released over 'backdrop zone' then onBackdropClick event fires.
Expected Behavior
If mouse up event happens while dragging an item over 'backdrop zone' then the item should be released without firing onBackdropClick event.
Current Behavior
Releasing draggable component over 'backdrop zone' is firing onBackdropClick event
Steps to Reproduce
Link: https://codesandbox.io/s/km2nmnyn03
Context
Your Environment
Tech | Version |
---|---|
Material-UI | v3.4.0 |
React | 16.5.2 |
Browser | 70.0.3538.102 |
TypeScript | 3.1.4 |