re-resizable
re-resizable copied to clipboard
elementRef clientWidth/clientHeight on onResize callback is not updated anymore
Question
Overview of the problem
I'm using re-resizable version 2.1.0
My browser is:
Chrome
I am sure this issue is not a duplicate?
Description
I was using last react-resizable-box and wanted to get the last version in order to move to react 16 at some point. When doing so, I noticed a different behaviour with the onResize callback. Previously I was using the elementRef clientWidth and clientHeight to resize my element.
After the update, the width and height of the element is not changed when resizing.
Expected behavior
div clientWidth and clientHeight is updated
Actual behavior
element is not updated
@ioRekz Thanks for your report. I'll do investigation.
@ioRekz Could you please provide reproduced project in codesandobox? https://codesandbox.io/s/xp9p7272m4