-
Notifications
You must be signed in to change notification settings - Fork 47k
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
Composition type compoent #7087
Comments
You should set the return (React.createElement(type, {
...props,
/* Add the value prop here and it works as you'd expect */
value: value,
defaultValue: value,
onBeforeInput: (e) => {
textInputData = (textInputData || '') + e.data
}, |
@aweary Yes! |
You can see here: demo video |
@suhaotian Looks like you're using 15.1.0. Does this also happen with 15.0.1? @hellendag have you heard of any issues with IME lately? |
I think this is related to #3926, where In your onChange: (e) => {
if (!composing) {
onChange(e.target.value)
}
}, When However, I'm not sure why you need to use |
@keyanzhang type some Chinese words will fire |
@zpao Also happen with 15.0.1; Some code from |
Hey, guys. I solved this proplem !!! Online work demo: http://output.jsbin.com/basada Effect: https://youtu.be/K6lXWRv72ok |
I write this BaseInput,
some code from
draft-js
,problem here: when you click
set another value
button, the input didn't change.And I know I shouldn't use defaultValue in
BaseInput
component, But if not, the compostion type doesn't work correct. And I browser document again, really don't know how to do it.Have any idea?
BaseInput
Update:
change
defaultValue
tovalue
:You can see effect here: demo video
The text was updated successfully, but these errors were encountered: