react-rnd icon indicating copy to clipboard operation
react-rnd copied to clipboard

Bug: onMouseUp callback doesn't get called

Open elimist3 opened this issue 5 years ago • 3 comments

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

  1. click down
  2. release click
  3. observe that onMouseUp event never gets called

Expected behavior

onMouseUp should be called on mouse up

Actual behavior

onMouseUp isn't called

elimist3 avatar Feb 12 '20 21:02 elimist3

This method will never be called. The onMouseUp prop was thrown further into react-draggable and there this prop is not supported.

evtif avatar Mar 30 '20 14:03 evtif

<Rnd onMouseDown={setUpdatingOn} bounds="parent" > <div onMouseUp={setUpdatingOff} style={{ width: "100%", height: "100%" }} > {name} </div> </Rnd> inner div can handle callback.

umartk avatar Jul 15 '22 14:07 umartk