ueberdosis / tiptap

The headless rich text editor framework for web artisans.
https://tiptap.dev
MIT License
26.32k stars 2.22k forks source link

[Bug]: Soft keyboard will flash when using 【undo】、【redo】action by Android WebView #4532

Open WeMadeCode opened 10 months ago

WeMadeCode commented 10 months ago

Which packages did you experience the bug in?

core, extension-history, react

What Tiptap version are you using?

2.1.11

What’s the bug you are facing?

In Android WebView, when using the undo and redo functions, the soft keyboard will flash.

Screen_recording_20231013_164529.webm

What browser are you using?

Chrome

Code example

No response

What did you expect to happen?

the soft keyboard will not flash

Anything to add? (optional)

No response

Did you update your dependencies?

Are you sponsoring us?

lvzhenbo commented 8 months ago

In fact, this is not only a problem of undo redo, as long as the focus() command is used, the focus will be reset, which is the root cause of keyboard flickering. Without using the focus() command, you will lose focus.

WeMadeCode commented 8 months ago

@lvzhenbo but I need focus(). I will lost keyboard without focus()

WeMadeCode commented 8 months ago

It‘s OK in WKWebView