File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/react-native/React/Fabric/Mounting/ComponentViews/TextInput Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -269,12 +269,12 @@ - (void)updateProps:(const Props::Shared &)props oldProps:(const Props::Shared &
269
269
_backedTextInputView.defaultTextAttributes [RCTAttributedStringEventEmitterKey];
270
270
#endif
271
271
272
- NSMutableParagraphStyle *paragraphStyle = defaultAttributes[NSParagraphStyleAttributeName ];
273
-
274
272
if (!newTextInputProps.multiline ) {
273
+ NSMutableParagraphStyle *paragraphStyle = defaultAttributes[NSParagraphStyleAttributeName ];
275
274
paragraphStyle.lineBreakMode = NSLineBreakByTruncatingTail;
276
275
defaultAttributes[NSParagraphStyleAttributeName ] = paragraphStyle;
277
276
}
277
+
278
278
_backedTextInputView.defaultTextAttributes = defaultAttributes;
279
279
}
280
280
You can’t perform that action at this time.
0 commit comments