fix(ios): textfield resizing (auto width) on text change (#9176)

This commit is contained in:
Martin Guillon
2021-01-26 22:27:18 +01:00
committed by GitHub
parent e002d72d41
commit c31bab1bf7

View File

@ -217,7 +217,10 @@ export class TextField extends TextFieldBase {
if (this.formattedText) { if (this.formattedText) {
_updateCharactersInRangeReplacementString(this.formattedText, range.location, range.length, replacementString); _updateCharactersInRangeReplacementString(this.formattedText, range.location, range.length, replacementString);
} }
if (this.width === 'auto') {
// if the textfield is in auto size we need to request a layout to take the new text width into account
this.requestLayout();
}
this.firstEdit = false; this.firstEdit = false;
return true; return true;