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

Copy / paste / cut causes keyboard disappeared on Android / iOS. #794

Closed
4 tasks
lixiaoyan opened this issue May 4, 2018 · 1 comment
Closed
4 tasks

Comments

@lixiaoyan
Copy link

lixiaoyan commented May 4, 2018

Edited: add more details.

Issue details

Copy / paste / cut causes keyboard disappeared on Android / iOS.

On Android: (tested in Chrome on Android 8.1.0)

  • Copy: works well
  • Paste: keyboard disappeared
  • Cut: keyboard disappeared

On iOS: (tested in Safari on iOS 11.2.1)

  • Copy: keyboard disappeared
  • Paste: flicker
  • Cut: keyboard disappeared

Steps to reproduce

Copy / paste / cut text in any ProseMirror editor on Android / iOS devices.

ProseMirror version

Affected platforms

  • Chrome
  • Firefox
  • Internet Explorer
  • Other

Screenshots / Screencast (Optional)

@lixiaoyan lixiaoyan changed the title Paste / cut caused keyboard disappeared on Android. Paste / cut causes keyboard disappeared on Android. May 4, 2018
@lixiaoyan lixiaoyan changed the title Paste / cut causes keyboard disappeared on Android. Copy / paste / cut causes keyboard disappeared on Android / iOS. May 4, 2018
marijnh added a commit to ProseMirror/prosemirror-view that referenced this issue Mar 19, 2020
This randomly avoids a virtual-keyboard-hiding issue on paste in
Chrome for Android (and slightly simplifies the code).

FIX: Work around Chrome Android issue where pasting would close the
virtual keyboard.

Issue ProseMirror/prosemirror#794
@marijnh
Copy link
Member

marijnh commented Mar 19, 2020

Attached patch helps with paste on Chrome Android (I couldn't reproduce the issue for copy and cut).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants