File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -494,6 +494,30 @@ class YourComponent extends Component {
494494}
495495```
496496
497+ #### ` allowAnyClick?: boolean `
498+
499+ If set to ` true ` , will allow dragging on non left-button clicks.
500+
501+ #### ` nodeRef?: React.Ref<typeof React.Component> `
502+
503+ please see, https://github.com/STRML/react-draggable
504+ ```
505+ If running in React Strict mode, ReactDOM.findDOMNode() is deprecated.
506+ Unfortunately, in order for <Draggable> to work properly, we need raw access
507+ to the underlying DOM node. If you want to avoid the warning, pass a `nodeRef`
508+ as in this example:
509+
510+ function MyComponent() {
511+ const nodeRef = React.useRef(null);
512+ return (
513+ <Rnd nodeRef={nodeRef}>
514+ <div ref={nodeRef}>Example Target</div>
515+ </Rnd>
516+ );
517+ }
518+
519+ ```
520+
497521## Test
498522
499523``` sh
@@ -508,6 +532,12 @@ If you have a bug to report, please reproduce the bug in [CodeSandbox](https://c
508532
509533## Changelog
510534
535+ #### v10.2.0
536+
537+ - Upgrade ` react-draggable ` to v4.4.3
538+ - Add ` allowAnyClick ` props.
539+ - Add ` nodeRef ` props.
540+
511541#### v10.1.10
512542
513543- Downgrade ` react-draggable ` to v4.2.0 #690
You can’t perform that action at this time.
0 commit comments