Skip to content

Commit 13661c4

Browse files
committed
Replace \uFFFC to typingAttributesBeforeInsertion
1 parent cec6fbd commit 13661c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Libraries/Text/TextInput/RCTBaseTextInputView.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ - (BOOL)textOf:(NSAttributedString*)newText equals:(NSAttributedString*)oldText{
113113
inRange:NSMakeRange(0, oldText.length)
114114
options:kNilOptions
115115
usingBlock:^(id _Nullable value, NSRange range, BOOL * _Nonnull stop) {
116-
if (value && [@"\uFFFC" isEqualToString:[oldText attributedSubstringFromRange:range].string]) {
116+
if ([value respondsToSelector:NSSelectorFromString(@"typingAttributesBeforeInsertion")]) {
117117
isDictationRunning = true;
118118
*stop = true;
119119
}

0 commit comments

Comments
 (0)