Skip to content
This repository was archived by the owner on Jun 18, 2024. It is now read-only.

Commit 68b7ee4

Browse files
authored
Merge pull request #28 from sonnat/hotfix/dialog
[:bug:] opt-in `debounce` option to the ResizeSensor
2 parents 158926b + 38eb71d commit 68b7ee4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Dialog/Dialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ const DialogBase = (props: DialogProps, ref: React.Ref<HTMLDivElement>) => {
9595
const dialogRef = React.useRef<HTMLDivElement | null>(null);
9696

9797
const { height: resizeSensorHeight, registerNode: registerResizeSensor } =
98-
useResizeSensor();
98+
useResizeSensor({ mode: "debounce" });
9999

100100
const [state, setState] = React.useState({
101101
hasOverflow: false,

0 commit comments

Comments
 (0)