From 7a24f6770edb18841be075fa1bd07838708fac6a Mon Sep 17 00:00:00 2001 From: Teejay85 Date: Wed, 19 Feb 2020 22:34:13 +0000 Subject: [PATCH] [SwipeableDrawer] Improve Preact support (#19782) --- .../material-ui/src/SwipeableDrawer/SwipeableDrawer.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/material-ui/src/SwipeableDrawer/SwipeableDrawer.js b/packages/material-ui/src/SwipeableDrawer/SwipeableDrawer.js index ddd7944600f965..0d59b867193cc9 100644 --- a/packages/material-ui/src/SwipeableDrawer/SwipeableDrawer.js +++ b/packages/material-ui/src/SwipeableDrawer/SwipeableDrawer.js @@ -504,11 +504,6 @@ const SwipeableDrawer = React.forwardRef(function SwipeableDrawer(props, ref) { backdropRef.current = ReactDOM.findDOMNode(instance); }, []); - const handlePaperRef = React.useCallback(instance => { - // #StrictMode ready - paperRef.current = ReactDOM.findDOMNode(instance); - }, []); - return (