mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-05-02 14:24:52 +00:00
fix(Tooltip): was not removed on unmount
This commit is contained in:
parent
97803321d5
commit
e9c654bd29
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ const Tooltip = ({ label, position, margin }) => {
|
|||
tooltip.toggle(id.current, false);
|
||||
};
|
||||
|
||||
React.useEffect(() => {
|
||||
React.useLayoutEffect(() => {
|
||||
if (element.current && element.current.parentElement) {
|
||||
const parentElement = element.current.parentElement;
|
||||
tooltip.add({
|
||||
|
|
|
|||
Loading…
Reference in a new issue