Skip to content

Commit d1fe322

Browse files
committed
localizing the scope of the resize handler
1 parent 7189f32 commit d1fe322

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/dash-core-components/src/utils/ResizeDetector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const ResizeDetector = props => {
1414
if (resizeTimeout) {
1515
clearTimeout(resizeTimeout);
1616
}
17-
resizeTimeout = setTimeout(() => {
17+
var resizeTimeout = setTimeout(() => {
1818
onResize(true); // Force on resize.
1919
}, DELAY);
2020
}, [onResize]);

0 commit comments

Comments
 (0)