Skip to content

Commit

Permalink
tweak delayed cm render
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Apr 11, 2024
1 parent a013bd3 commit c2bd091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/components/CellInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ export const CellInput = ({

const [show_static_fake_state, set_show_static_fake] = useState(!skip_static_fake)

const show_static_fake = cm_forced_focus != null || skip_static_fake ? false : show_static_fake_state
const show_static_fake = useMemo(() => focus_after_creation || cm_forced_focus != null || skip_static_fake, []) ? false : show_static_fake_state

useLayoutEffect(() => {
if (!show_static_fake) return
Expand Down

0 comments on commit c2bd091

Please sign in to comment.