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

Resized only for 1 pixel

Open sklinov opened this issue 5 years ago • 4 comments

Thanks for opening an issue!

Please select the type of issue you're reporting. For questions.

  • [ ] Bug
  • [ ] Feature Request
  • [ X] Question

Problem Report

I'm implementing resizable Table of antd following the example shown in the documentation The difference is that the project is in Typescript and I use functional component and useState

The problem is that technically resizing works, but it moves only one pixel and then drops. I suspect that MouseMove event listener somehow gets dropped and it finishes the operation.

System Info

Node Version: 13.9.0 Browser: Chrome 83.0.4103.116 OS: Windows 10

sklinov avatar Jul 17 '20 04:07 sklinov

I'm having the same problem here if U see the console on dev tools, you will probably see the error "Unable to find node on an unmounted component".

phytter avatar Aug 21 '20 13:08 phytter

I am also having the same issue, using Typescript and functional components. The resize will move 1 pixel and then I am unable to see the resize cursor on that column header anymore.

dzials avatar Sep 01 '20 15:09 dzials

I can't diagnose this without something like a codesandbox showing the issue.

STRML avatar Sep 01 '20 16:09 STRML

@phytter @dzials I came up with this workaround that uses custom eventListeners

sklinov avatar Sep 02 '20 03:09 sklinov