reobserve elements when children change (#54827)
This commit is contained in:
1 parent
762432a921
commit
8e8d0a08f9
1 file changed
+1
-1
@@ -57,7 +57,7 @@ export const ToolbarButtonRow = forwardRef<HTMLDivElement, Props>(
|
||||
});
|
||||
}
|
||||
return () => intersectionObserver.disconnect();
|
||||
}, []);
|
||||
}, [children]);
|
||||
|
||||
return (
|
||||
<div ref={containerRef} className={cx(styles.container, className)} {...rest}>
|
||||
|
||||
Reference in new issue
Block a user