-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
The content entered by the Chinese input method is displayed repeatedly #5023
Comments
Has this bug already been fixed? Or perhaps some sort of workaround has been found? |
Same issue |
Is your current slate operating environment the same?“macos webview userAgent Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko)” |
@Hhpon Yes, same environment. I'm trying to set a custom user-agent for the browser but slate doesn't seem to recognize it
Is there a way to set it so that Slate picks up? The code above seems to log the new user-agent correctly, but is still doesn't work. |
hello,Is your slate running in a macos webview? My solution at the time was uesrAgent modified by the developer of webview. |
I'll try to change the webview, thank you! |
Description
The compositionEnd event and the beforeInput event trigger the insertText event repeatedly, resulting in repeated typing。
Recording
https://user-images.githubusercontent.com/33001067/172849978-2e272d4b-ff1a-43b7-966e-68fc9508b062.mov
Sandbox
A link to a sandbox where the error can be reproduced. (You can start from the base sandbox here: https://codesandbox.io/s/slate-reproductions-c7gyg or refer to the Slate website too.)
Steps
To reproduce the behavior:
Expectation
I know this problem is caused by duplication of insert text with onCompositionEnd event and onBeforeInput event. Shouldn't apple webkit webview be drained in onCompositionEnd event;
Environment
Context
same type issue
The text was updated successfully, but these errors were encountered: