Replies: 1 comment 1 reply
-
|
Thank you for reaching out. I think the solution you are looking for is achievable WITHOUT my lib, you just need to force apply Then, you need to apply input focus hack for iOS mentioned in this issue: #3 This will prevent your content from jumping up on iOS when you focus on input, this elevates your whole window object outside of your viewport, but I've always found this behavior of iOS annoying, we're lucky to have this css hack. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I read your article and it's a great read ❤️ . But I'm not sure if I can use this component to fix my current issue 😬 .
I'm trying to build a simple chat App (using NextJs), and I just want to make the chat input box always stick to bottom of the viewport when a virtual keyboard is open, just like ChatGPT.
I can achieve this behaviour in Android (or any chromium based browsers) just by using this HTML meta tag value
interactive-widget=resize-content, but not on iOS.I tried so many hacks using
viswalViewport.height:Even though this pushes the input to the desired position, it also adds a blank space behind the keyboard that the user is able to scroll and see.
I'm fairly new to NextJS and react (I'm basically a backend developer by profession, trying to learn NextJS 🥹 ), please give me pointers if I'm missing something. There's not much material on this when I googled. I'm curious how ChatGPT is handling this without any visual glitch or stutter.
Beta Was this translation helpful? Give feedback.
All reactions