-
-
Notifications
You must be signed in to change notification settings - Fork 340
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
EditorView.focus on iOS causes the onscreen keyboard to overlay the editor. #1417
Comments
Suppressing the scrolling on focus is done because browsers tend to eagerly scroll the top of the document into view on focus, which is wrong when the selection is somewhere else. The question is whether |
Unfortunately that does not seem to have any effect. The software keyboard is still hiding the input field. |
I'm experiencing the same thing. Calling Just to add, I can confirm that this only affects iOS. Android is unaffected. Here's a video of the issue (It's a web app running in a WebView): https://github.com/ProseMirror/prosemirror/assets/10741084/a87cd9cd-43fc-468e-a7ce-677143b09a1c |
First off please excuse if this is already a known issue but I was not able to find anything about it here.
Basically calling EditorView.focus causes the onscreen keyboard of iOS devices to overlap the inputfield on Safari making it hard to see what is being entered. This does not seem to happen with other browsers used on iOS as far as I could test.
My assumption is that the correct behaviour would be for the keyboard to push up everything as to not obstruct the field.
This can be easily seen in the demo here provided by someone else: Demo
The overlap does not happen when clicking into the input directly or using EditorView.dom.focus which is why I assume the reason lies somewhere in the focusPreventScroll call made in .focus.
The text was updated successfully, but these errors were encountered: