mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-16 02:35:13 +01:00
fix: follow mode collaborator status indicator (#7459)
This commit is contained in:
@@ -80,6 +80,7 @@ type TooltipProps = {
|
||||
label: string;
|
||||
long?: boolean;
|
||||
style?: React.CSSProperties;
|
||||
disabled?: boolean;
|
||||
};
|
||||
|
||||
export const Tooltip = ({
|
||||
@@ -87,11 +88,15 @@ export const Tooltip = ({
|
||||
label,
|
||||
long = false,
|
||||
style,
|
||||
disabled,
|
||||
}: TooltipProps) => {
|
||||
useEffect(() => {
|
||||
return () =>
|
||||
getTooltipDiv().classList.remove("excalidraw-tooltip--visible");
|
||||
}, []);
|
||||
if (disabled) {
|
||||
return null;
|
||||
}
|
||||
return (
|
||||
<div
|
||||
className="excalidraw-tooltip-wrapper"
|
||||
|
||||
Reference in New Issue
Block a user