Uh oh!
There was an error while loading. Please reload this page.
Backport input fix - #8575
Conversation
fixesreact#7211fixesreact#6822fixesreact#6614 we should make sure it doesn't break react#3926 any worse (or works with react#8438)
jquense
commented
Dec 14, 2016
CI seems like not my fault :P |
gaearon
commented
Dec 14, 2016
If you added new tests please run |
@gaearon these tests already exists in |
gaearon
commented
Dec 14, 2016
Oops, I didn't realize that. |
jquense
commented
Dec 29, 2016
ping, anything I can do here? I'm not sure what the issue with CI is but it doesn't seem related. |
jquense
commented
Dec 29, 2016
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 |
aweary
commented
Dec 29, 2016
jquense
commented
Dec 29, 2016
no worries, just wanted to make sure it wasn't blocked by me :) |
gaearon
commented
Jan 24, 2017
@sebmarkbage You wanted to have another look at this? |
aweary
commented
Jan 31, 2017
@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. |
gaearon
commented
Jan 31, 2017
Does this work with Fiber too? |
aweary
commented
Jan 31, 2017
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. |
gaearon
commented
Jan 31, 2017
You can see We’d need Fiber parity to ship. |
aweary
commented
Jan 31, 2017
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. |
jquense
commented
Jan 31, 2017
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. |
gaearon
commented
Jan 31, 2017
I wonder why CI is failing. Could you rebase? Might be the old version of |
sebmarkbage
commented
Jan 31, 2017
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? |
Just two more items before we will have an RC ready. :)
cc @aweary
fixes#7211fixes#6822fixes#6614
we should make sure it doesn't break #3926 any worse (or works with #8438)