react-rnd
react-rnd copied to clipboard
How to make a child element not draggable
I have controls and areas in my child element that I don't want to be draggable. How can I delimit the content that is draggable?
I have the same issue
@wagnerpaz @furkanilhan Please use cancel if you don't want to drag.
https://github.com/bokuweb/react-rnd/blob/master/stories/cancel/cancel.tsx#L17
In case anyone adds className="cancel" and wonders why it's not working, see this line: https://github.com/bokuweb/react-rnd/blob/master/stories/cancel/cancel.tsx#L8. Make sure to add that property.
如果有人添加
className="cancel"并想知道为什么它不起作用,请参阅以下行:https : //github.com/bokuweb/react-rnd/blob/master/stories/cancel/cancel.tsx#L8。确保添加该属性。
thank you
Add this to the readme? Super useful.
It's in the readme.