Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent KeyboardAwareScrollView scrolling up when focused on the same input #798

Closed
denysoleksiienko opened this issue Feb 4, 2025 · 4 comments · Fixed by #799
Closed
Assignees
Labels
🐛 bug Something isn't working 🏭 fabric Changes specific to new (fabric/jsi) architecture focused input 📝 Anything about focused input functionality 🍎 iOS iOS specific KeyboardAwareScrollView 📜 Anything related to KeyboardAwareScrollView component repro provided Issue contains reproduction repository/code

Comments

@denysoleksiienko
Copy link

Describe the bug
When focused on the same input, the KeyboardAwareScrollView disableScrollOnKeyboardHide always scrolls up

Repo for reproducing
https://github.com/denysoleksiienko/keyboard-controller

To Reproduce

  1. yarn, yarn pod-install, start
  2. Click on the input number 11 multiple times
  3. the KeyboardAwareScrollView is always up

Expected behavior
KeyboardAwareScrollView with enabled disableScrollOnKeyboardHide shouldn't up the screen if input visible with an opened keyboard

Screenshots

Simulator.Screen.Recording.-.iPhone.16.Pro.-.2025-02-04.at.15.19.16.mp4

Smartphone (please complete the following information):

  • Desktop OS: macOS 15.3
  • Device: Simulator 16 pro
  • OS: 18.2
  • RN version: 0.76.6
  • RN architecture: fabric
  • JS engine: Hermes
  • Library version: ^1.16.2
@kirillzyusko kirillzyusko added 🐛 bug Something isn't working KeyboardAwareScrollView 📜 Anything related to KeyboardAwareScrollView component repro provided Issue contains reproduction repository/code 🍎 iOS iOS specific labels Feb 4, 2025
@kirillzyusko
Copy link
Owner

@xotahal probably the same issue that we discussed with you 👀

I reproduced it - working on a fix at the moment 👍

@kirillzyusko
Copy link
Owner

@denysoleksiienko was this problem reproducible in 1.15.2?

@kirillzyusko kirillzyusko added focused input 📝 Anything about focused input functionality 🏭 fabric Changes specific to new (fabric/jsi) architecture labels Feb 4, 2025
@denysoleksiienko
Copy link
Author

@kirillzyusko no, 1.15.2 is fine

Simulator.Screen.Recording.-.iPhone.16.Pro.-.2025-02-04.at.21.39.27.mp4

@kirillzyusko
Copy link
Owner

Should be fixed in 1.16.2 when it will be published 😊

Thank you for opening the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working 🏭 fabric Changes specific to new (fabric/jsi) architecture focused input 📝 Anything about focused input functionality 🍎 iOS iOS specific KeyboardAwareScrollView 📜 Anything related to KeyboardAwareScrollView component repro provided Issue contains reproduction repository/code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants