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

Input: onChange event triggered when IME character (ex. Chinese) is not completely entered #1744

Closed
paladinze opened this issue Jun 7, 2017 · 1 comment

Comments

@paladinze
Copy link

paladinze commented Jun 7, 2017

Steps

  • create an input element with onChange event

<Input placeholder='Search...' onChange={() => {console.log("onchange fired!")}} />

  • enter some text using Chinese, Japanese, or Korean input method

Expected Result

onChange event should be triggered only when character is finalized

Actual Result

onChange event triggered as each sub character is entered

Version

0.68.5

Impact

This severely impacts the usability of Input and Search Components for users using non-latin language
This is probably an inherent issue with React, but maybe Semantic-UI can provide a workaround using compositionstart and compositionend event.

Related issue

facebook/react#3926

@layershifter
Copy link
Member

@paladinze thanks for the report, I opened #1753 for this.

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