-
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
Backport input fix #8575
Backport input fix #8575
Conversation
fixes facebook#7211 fixes facebook#6822 fixes facebook#6614 we should make sure it doesn't break facebook#3926 any worse (or works with facebook#8438)
CI seems like not my fault :P |
If you added new tests please run |
@gaearon these tests already exists in |
Oops, I didn't realize that. |
ping, anything I can do here? I'm not sure what the issue with CI is but it doesn't seem related. |
If it helps, there are only a few lines of new code on top of #5746 https://github.com/facebook/react/pull/8575/files#diff-d7d43033e0c4300df2b535a9df27b8edR127 and https://github.com/facebook/react/pull/8575/files#diff-5e825edec102e25dc133910960c7f37eR325 |
no worries, just wanted to make sure it wasn't blocked by me :) |
@sebmarkbage You wanted to have another look at this? |
@jquense Alright, I finally got a chance to verify behavior locally in regards to #3926. Without any changes it doesn't make the issue any worse (still fires before composition event finishes). But I cherry picked ae54338 from #8438 and after minimal changes (making sure I tested with the native Pinyin keyboard provided by OS X (10.12.2). I'll continue to look at it and verify that there are no regressions, but I think this looks good 👍 @gaearon @sebmarkbage if either of you want to give it a second review let me know and I can hold off on moving forward with this. |
Does this work with Fiber too? |
I'm not super familiar with how Fiber interfaces with the existing event system, but I can switch on the flag and test it out. |
You can see We’d need Fiber parity to ship. |
This change is already in master too btw, so you may have already been testing with it. |
Oooh. I didn’t realize this was against In fact it’s impossible because we haven’t cherry-picked Fiber PRs there at all. |
the meat of this is already in and functions with v16, so it should be ok? If the event marshaling bit here (the code on top of #5746) is a problem for fiber we can remove it. It is convenient but not really needed except to prevent a small but technically breaking change in tests. |
I wonder why CI is failing. Could you rebase? Might be the old version of |
Why is it important to have the getter/setter on the Is it that you want to protect against manual mutation of the value? What scenario does that happen that is common enough to warrant this? My concern is that the input value tracker code is:
I wonder if we could sacrifice one of the edge cases for a smaller solution that only compares to the internal state of the React prop? |
cc @aweary
fixes #7211 fixes #6822 fixes #6614
we should make sure it doesn't break #3926 any worse (or works with #8438)