Browse Source

demo: Update for Resolving deprecation of findDOMNode in StrictMode (#43451)

Resolving deprecation of findDOMNode in StrictMode

References: https://github.com/react-grid-layout/react-draggable/blob/master/CHANGELOG.md#440-may-12-2020

Signed-off-by: kookieaz <yunhe9337@gmail.com>
pull/43452/head
liyunhe 1 year ago
committed by GitHub
parent
commit
2cb72a7fc0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      components/modal/demo/modal-render.tsx

1
components/modal/demo/modal-render.tsx

@ -71,6 +71,7 @@ const App: React.FC = () => {
<Draggable <Draggable
disabled={disabled} disabled={disabled}
bounds={bounds} bounds={bounds}
nodeRef={draggleRef}
onStart={(event, uiData) => onStart(event, uiData)} onStart={(event, uiData) => onStart(event, uiData)}
> >
<div ref={draggleRef}>{modal}</div> <div ref={draggleRef}>{modal}</div>

Loading…
Cancel
Save