We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
[RCTUITextField validAttributesForMarkedText]
1 parent 9de5b22 commit 03b0a03Copy full SHA for 03b0a03
packages/react-native/Libraries/Text/TextInput/Singleline/RCTUITextField.mm
@@ -161,7 +161,7 @@ - (BOOL)hasMarkedText
161
162
- (NSArray<NSAttributedStringKey> *)validAttributesForMarkedText
163
{
164
- return ((NSTextView *)self.currentEditor).validAttributesForMarkedText;
+ return ((NSTextView *)self.currentEditor).validAttributesForMarkedText ?: @[];
165
}
166
167
#endif // macOS]
0 commit comments