We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 978cc39 commit 26e6d6fCopy full SHA for 26e6d6f
core/src/components/textarea/textarea.tsx
@@ -193,10 +193,12 @@ export class Textarea implements ComponentInterface {
193
this.ionInputDidLoad.emit();
194
}
195
196
+ // TODO: performance hit, this cause layout thrashing
197
private runAutoGrow() {
198
const nativeInput = this.nativeInput;
199
if (nativeInput && this.autoGrow) {
200
readTask(() => {
201
+ nativeInput.style.height = 'inherit';
202
nativeInput.style.height = nativeInput.scrollHeight + 'px';
203
});
204
0 commit comments