Skip to content

Commit efee532

Browse files
committed
cleanup
1 parent 4a97ccb commit efee532

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/ui/text-field/index.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ export class TextField extends TextFieldBase {
350350
}
351351

352352
if (paragraphStyle) {
353-
let attributedString = NSMutableAttributedString.alloc().initWithString(this.nativeViewProtected.text);
353+
let attributedString = NSMutableAttributedString.alloc().initWithString(this.nativeViewProtected.text || '');
354354
attributedString.addAttributeValueRange(NSParagraphStyleAttributeName, paragraphStyle, NSRangeFromString(`{0,${attributedString.length}}`));
355355

356356
this.nativeViewProtected.attributedText = attributedString;

0 commit comments

Comments
 (0)