fix(Tooltip): update when label change

This commit is contained in:
Tim 2023-10-17 14:31:26 +02:00
parent e9c654bd29
commit d75c50db6b

View file

@ -45,7 +45,7 @@ const Tooltip = ({ label, position, margin }) => {
tooltip.remove(id.current);
}
};
}, []);
}, [label]);
return (
<div ref={element} className={styles['tooltip']} />