From 9451b283e2cb30ac9087574461f6b9f4b6cc3e0f Mon Sep 17 00:00:00 2001 From: Sean Perkins Date: Tue, 13 Sep 2022 15:02:22 -0400 Subject: [PATCH] fix(input,textarea): data-form-type attribute is assigned to inner input (#25927) Resolves #25908 --- core/src/components/input/input.tsx | 2 +- core/src/components/textarea/textarea.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/components/input/input.tsx b/core/src/components/input/input.tsx index d0a594fddc..d2e9cfcefc 100644 --- a/core/src/components/input/input.tsx +++ b/core/src/components/input/input.tsx @@ -260,7 +260,7 @@ export class Input implements ComponentInterface { componentWillLoad() { this.inheritedAttributes = { ...inheritAriaAttributes(this.el), - ...inheritAttributes(this.el, ['tabindex', 'title']), + ...inheritAttributes(this.el, ['tabindex', 'title', 'data-form-type']), }; } diff --git a/core/src/components/textarea/textarea.tsx b/core/src/components/textarea/textarea.tsx index 57d00b6f7c..1f4f221141 100644 --- a/core/src/components/textarea/textarea.tsx +++ b/core/src/components/textarea/textarea.tsx @@ -223,7 +223,7 @@ export class Textarea implements ComponentInterface { componentWillLoad() { this.inheritedAttributes = { ...inheritAriaAttributes(this.el), - ...inheritAttributes(this.el, ['title']), + ...inheritAttributes(this.el, ['data-form-type', 'title']), }; }