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

Edge with input method produces random characters #1940

Closed
intellild opened this issue Jun 27, 2018 · 1 comment
Closed

Edge with input method produces random characters #1940

intellild opened this issue Jun 27, 2018 · 1 comment

Comments

@intellild
Copy link

intellild commented Jun 27, 2018

What's the current behavior?

Can be reproduced with
https://www.slatejs.org/#/plain-text

  1. detele all text. so we can see the placeholder
  2. input whatever with an input method
  3. some random characters come out
    qq20180627-103741-hd
    Windows 10
    Microsoft Edge 42.17134.1.0
    Microsoft EdgeHTML 17.17134

What's the expected behavior?

No random characters.

My work around

in renderPlaceholder:

  if (editor.state.isComposing) {
    if (IS_EDGE && !editor.props.value.document.text) {
      // noop
    } else {
      return;
    }
  }
@ianstormtaylor
Copy link
Owner

Closing in favor of #2368, if you think this is unrelated let me know and we can reconsider.

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

No branches or pull requests

2 participants