Skip to content

Commit

Permalink
fix: add reseting tones box position on category change
Browse files Browse the repository at this point in the history
  • Loading branch information
mateki0 authored and jakex7 committed Jun 18, 2023
1 parent 6c3b86c commit c73f87e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/EmojiStaticKeyboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export const EmojiStaticKeyboard = React.memo(
index: activeCategoryIndex,
animated: shouldAnimateScroll && enableCategoryChangeAnimation,
})
setKeyboardScrollOffsetY(0)
}, [activeCategoryIndex, enableCategoryChangeAnimation, shouldAnimateScroll])

const keyExtractor = React.useCallback((item: EmojisByCategory) => item.title, [])
Expand Down

0 comments on commit c73f87e

Please sign in to comment.