Skip to content

Commit

Permalink
fix: fix animation for menu with editable typography (#1919)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaharzil authored Jan 25, 2024
1 parent 64f71ec commit c5c2212
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/EditableTypography/EditableTypography.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { ElementType, forwardRef, useEffect, useLayoutEffect, useRef, useState } from "react";
import React, { ElementType, forwardRef, useEffect, useRef, useState } from "react";
import cx from "classnames";
import useMergeRef from "../../hooks/useMergeRef";
import VibeComponentProps from "../../types/VibeComponentProps";
Expand Down Expand Up @@ -129,7 +129,7 @@ const EditableTypography: VibeComponent<EditableTypographyProps, HTMLElement> =
}
}, [isEditing]);

useLayoutEffect(() => {
useEffect(() => {
if (!typographyRef.current) {
return;
}
Expand Down

0 comments on commit c5c2212

Please sign in to comment.