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