You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
react-resizable has the propType of offsetParent set to PropTypes.node, so when an HTML Element is passed, an error is printed in the console: Warning: Failed prop type: Invalid prop `draggableOpts.offsetParent` supplied to `Resizable`, expected a ReactNode.
Note: The Codesandbox link of the issue template had an old version of react-resizable, so I first updated it, and then added the offsetParent property.
The text was updated successfully, but these errors were encountered:
Thanks for opening an issue!
Please select the type of issue you're reporting. For questions.
Problem Report
react-draggable
expects the propertyoffsetParent
to be anHTMLElement
(relevant line inreact-draggable
source code)react-resizable
has thepropType
ofoffsetParent
set toPropTypes.node
, so when an HTML Element is passed, an error is printed in the console:Warning: Failed prop type: Invalid prop `draggableOpts.offsetParent` supplied to `Resizable`, expected a ReactNode.
Note: The
offsetParent
property is important because of this issue and this fix/workaround of that issue.Reproduction
https://codesandbox.io/s/react-resizable-playground-forked-c673dc?file=/src/index.js
Note: The Codesandbox link of the issue template had an old version of react-resizable, so I first updated it, and then added the
offsetParent
property.The text was updated successfully, but these errors were encountered: