Bug: onMouseUp callback doesn't get called
Overview of the problem
onMouseDown callback doesn't get called after clicking an Rnd component
I'm using react-rnd version [10.1.6]
My browser is: Version 79.0.3945.130 (Official Build) (64-bit)
I am sure this issue is not a duplicate? yes
Reproduced project
https://codesandbox.io/s/mutable-https-e826i
Description
onMouseUp callback doesn't get invoked
Steps to Reproduce
- click down
- release click
- observe that onMouseUp event never gets called
Expected behavior
onMouseUp should be called on mouse up
Actual behavior
onMouseUp isn't called
This method will never be called. The onMouseUp prop was thrown further into react-draggable and there this prop is not supported.
<Rnd onMouseDown={setUpdatingOn} bounds="parent" > <div onMouseUp={setUpdatingOff} style={{ width: "100%", height: "100%" }} > {name} </div> </Rnd>
inner div can handle callback.