Skip to content

Commit

Permalink
Fix focus theft on initial render
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Moore committed Nov 28, 2024
1 parent cd9efe2 commit c532c28
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ export const GenericTile = ({
isMountingRef.current = true
}, [])

useEffect(() => {
isMountingRef.current = true
}, [])

useEffect(() => {
if (!isMountingRef.current) {
if (isFlipped) {
Expand Down

0 comments on commit c532c28

Please sign in to comment.