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 557d1cd commit 7b977d0Copy full SHA for 7b977d0
packages/react-native/Libraries/Text/TextInput/Singleline/RCTUITextField.mm
@@ -153,7 +153,7 @@ - (BOOL)hasMarkedText
153
154
- (NSArray<NSAttributedStringKey> *)validAttributesForMarkedText
155
{
156
- return ((NSTextView *)self.currentEditor).validAttributesForMarkedText;
+ return ((NSTextView *)self.currentEditor).validAttributesForMarkedText ?: @[];
157
}
158
159
#endif // macOS]
0 commit comments