91dcc9ac8e
Summary:This fixes autocomplete for CJK text input by making sure that the `<Text>` nodes that JS controls to produce attributed text matches the text view's attributed text as much as possible. This is done by giving the disconnected `<Text>` child the same style as the `<TextInput>` parent. This works because `-[RKTextView performPendingTextUpdate]` avoids setting the attributedText property on textView if the JS attributedText and textView attributedText are equal. This is important because setting attributedText on a text view clears the autocomplete state (markedText property) on a text view, breaking autocomplete for multistage input styles like CJK with a phonetic keyboard. Reviewed By: nicklockwood Differential Revision: D3207513 fb-gh-sync-id: 02e582ea5f15191974f15a65ebc1820401715f8d fbshipit-source-id: 02e582ea5f15191974f15a65ebc1820401715f8d |
||
---|---|---|
.. | ||
TextInput.js | ||
TextInputState.js |