mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
@ -193,10 +193,12 @@ export class Textarea implements ComponentInterface {
|
||||
this.ionInputDidLoad.emit();
|
||||
}
|
||||
|
||||
// TODO: performance hit, this cause layout thrashing
|
||||
private runAutoGrow() {
|
||||
const nativeInput = this.nativeInput;
|
||||
if (nativeInput && this.autoGrow) {
|
||||
readTask(() => {
|
||||
nativeInput.style.height = 'inherit';
|
||||
nativeInput.style.height = nativeInput.scrollHeight + 'px';
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user