fix(textarea): do not generate duplicate IDs between ion-input and ion-textarea (#22074)

resolves #21542
This commit is contained in:
Liam DeBeasi
2020-09-11 16:38:00 -04:00
committed by GitHub
parent 8b85fe0d9e
commit c72c7ffa98

View File

@@ -19,7 +19,7 @@ import { createColorClasses } from '../../utils/theme';
export class Textarea implements ComponentInterface {
private nativeInput?: HTMLTextAreaElement;
private inputId = `ion-input-${textareaIds++}`;
private inputId = `ion-textarea-${textareaIds++}`;
private didBlurAfterEdit = false;
private textareaWrapper?: HTMLElement;