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>
This commit is contained in:
liyunhe 2023-07-08 18:55:26 +08:00 committed by GitHub
parent dcb4611e25
commit 2cb72a7fc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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