[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>
Этот коммит содержится в:
@@ -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;
|
||||
|
||||
Ссылка в новой задаче
Block a user