Uh oh!
There was an error while loading. Please reload this page.
[iOS] Fixed onChange prop of textinput not be called in some cases - #23687
[iOS] Fixed onChange prop of textinput not be called in some cases#23687zhongwuzw wants to merge 4 commits into
Conversation
|
zhongwuzw
commented
Mar 1, 2019
@ericlewis Oops, I'll see your |
ericlewis
commented
Mar 1, 2019
@zhongwuzw my solution is only for multi line text inputs :( |
zhongwuzw
commented
Mar 1, 2019
@ericlewis I give some my opinions in your |
zhongwuzw
commented
Mar 6, 2019
Seems #23666 has been closed by @ericlewis , so we can review this implementation? 🤔 |
zhongwuzw
commented
Mar 13, 2019
shergin
left a comment
There was a problem hiding this comment.
The whole point to have those adapters is to call onChange only inside textInputDidChange, so all trickiness must be consolidated there.
zhongwuzw
commented
Mar 15, 2019
@shergin How about this way, to fix |
shergin
left a comment
There was a problem hiding this comment.
Well, using performSelector:withObject:afterDelay: makes this fix unreliable.
shergin
commented
Apr 6, 2019
Feel free to open a new one or reopen this one once we have a proper reliable fix for that, |
zhongwuzw
commented
Apr 19, 2019
After some try, I think f032e7a is more suitable to solve this issue. |
zhongwuzw
commented
May 21, 2019
@shergin Hi :) , the reason I reopened is I think |
| _nativeEventCount++; | ||
| if (_onChange) { |
There was a problem hiding this comment.
I am not comfortable with calling onChange inside textInputShouldChangeTextInRange.
As I said previously, all quicky behavior should be implemented in delegate adapter classes.
I do want to fix this issue very very badly but we cannot sacrifice maintainability of the code for this (so we need to improve the quality of this to make it merged).
Summary
TextInput not call
onChangeprop in some cases, the reason istextInputDidChangeis not be called, for example select some text and click the text in keyboard predictive text.I have the
PR#23472 , it fix the correction of_predictedText, I think we need to fix that firstly 😂 .Changelog
[iOS] [Fixed] - Fixed onChange prop of textinput not be called in some cases
Test Plan
onChangeprop can be called when text changed.