mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
reobserve elements when children change (#54827)
This commit is contained in:
parent
762432a921
commit
8e8d0a08f9
@ -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}>
|
||||||
|
Loading…
Reference in New Issue
Block a user