Skip to content

Commit 826252e

Browse files
committed
fix(textfield): ios allow textfield auto size
1 parent f34e418 commit 826252e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/textfield/textfield.ios.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,10 @@ export class TextField extends TextFieldBase {
171171
}
172172

173173
this.firstEdit = false;
174-
174+
if (this.width === 'auto') {
175+
// if the textfield is in auto size we need to request a layout to take the new text width into account
176+
this.requestLayout();
177+
}
175178
return true;
176179
// return super.textFieldShouldChangeCharactersInRangeReplacementString(textField, range, replacementString);
177180
}

0 commit comments

Comments
 (0)