mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(textarea): height is set correctly when using autoGrow in modals (#20971)
fixes #18993
This commit is contained in:
committed by
GitHub
parent
1622d9bb3c
commit
32ee040e3f
@@ -2,7 +2,7 @@ import { Build, Component, ComponentInterface, Element, Event, EventEmitter, Hos
|
||||
|
||||
import { getIonMode } from '../../global/ionic-global';
|
||||
import { Color, StyleEventDetail, TextareaChangeEventDetail } from '../../interface';
|
||||
import { debounceEvent, findItemLabel } from '../../utils/helpers';
|
||||
import { debounceEvent, findItemLabel, raf } from '../../utils/helpers';
|
||||
import { createColorClasses } from '../../utils/theme';
|
||||
|
||||
/**
|
||||
@@ -203,7 +203,7 @@ export class Textarea implements ComponentInterface {
|
||||
}
|
||||
|
||||
componentDidLoad() {
|
||||
this.runAutoGrow();
|
||||
raf(() => this.runAutoGrow());
|
||||
}
|
||||
|
||||
private runAutoGrow() {
|
||||
|
||||
Reference in New Issue
Block a user