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