[MM-50204] - Don't pass invalid prop to textarea by advanced text editor (#23224)

* [MM-50204] - Don't pass invalid prop to textarea by advanced text editor

* Remove using reflect

---------

Co-authored-by: Nevyana Angelova <nevyangelova@Nevyanas-MacBook-Pro.local>
Этот коммит содержится в:
na
2023-05-03 13:38:07 +07:00
коммит произвёл GitHub
родитель b6caed652a
Коммит 6fb9916b59

Просмотреть файл

@@ -129,6 +129,8 @@ export class AutosizeTextarea extends React.PureComponent<Props> {
height: 0,
};
Reflect.deleteProperty(otherProps, 'onWidthChange');
if (this.height <= 0) {
// Set an initial number of rows so that the textarea doesn't appear too large when its first rendered
heightProps.rows = 1;