We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2aaae24 commit 3f75e07Copy full SHA for 3f75e07
src/DrawerPopup.tsx
@@ -321,10 +321,8 @@ const DrawerPopup: React.ForwardRefRenderFunction<
321
// =========================== Resize ===========================
322
const wrapperRef = React.useRef<HTMLDivElement>(null);
323
324
- const isResizable = typeof resizable === 'boolean' ? resizable : !!resizable;
325
-
326
- const resizeConfig =
327
- typeof resizable === 'object' && resizable !== null ? resizable : {};
+ const isResizable = !!resizable;
+ const resizeConfig = (typeof resizable === 'object' && resizable) || {};
328
329
const onInternalResize = useEvent((size: number) => {
330
setCurrentSize(size);
0 commit comments