fix rtl typing in ie11/edge

This commit is contained in:
Pavel Mineev
2020-01-05 12:58:54 -06:00
committed by Umputun
parent a4d10f54dd
commit 01f19ea511
@@ -66,12 +66,6 @@ export default class TextareaAutosize extends Component<Props> {
}
}
render(props: Props) {
return (
// We set text as a child of textarea and not in value property for a reason.
// It's a workaround for the bug described here https://github.com/developit/preact/issues/326
<textarea {...props} ref={this.onRef}>
{props.value}
</textarea>
);
return <textarea {...props} ref={this.onRef} />;
}
}