From f6f8427b969a1108eaee3db346c7e0f6c349af60 Mon Sep 17 00:00:00 2001 From: Mehran Poursadeghi Date: Wed, 25 Dec 2024 11:51:09 +0330 Subject: [PATCH 1/2] feat: add 'dir' as an inherited attribute to textarea --- core/src/components/textarea/textarea.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/components/textarea/textarea.tsx b/core/src/components/textarea/textarea.tsx index 3349f0c1a85..9105d9dc7cc 100644 --- a/core/src/components/textarea/textarea.tsx +++ b/core/src/components/textarea/textarea.tsx @@ -331,7 +331,7 @@ export class Textarea implements ComponentInterface { componentWillLoad() { this.inheritedAttributes = { ...inheritAriaAttributes(this.el), - ...inheritAttributes(this.el, ['data-form-type', 'title', 'tabindex']), + ...inheritAttributes(this.el, ['data-form-type', 'title', 'tabindex','dir']), }; } From 737082a51adcb08bb534b87f076b2bdad17db9fd Mon Sep 17 00:00:00 2001 From: Mehran Poursadeghi Date: Wed, 25 Dec 2024 12:09:36 +0330 Subject: [PATCH 2/2] feat: add dir attribute to the list of inherited attributes of the native input --- 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 2a9b9ec34e7..d200289904e 100644 --- a/core/src/components/input/input.tsx +++ b/core/src/components/input/input.tsx @@ -341,7 +341,7 @@ export class Input implements ComponentInterface { componentWillLoad() { this.inheritedAttributes = { ...inheritAriaAttributes(this.el), - ...inheritAttributes(this.el, ['tabindex', 'title', 'data-form-type']), + ...inheritAttributes(this.el, ['tabindex', 'title', 'data-form-type', 'dir']), }; } diff --git a/core/src/components/textarea/textarea.tsx b/core/src/components/textarea/textarea.tsx index 9105d9dc7cc..c43f9452476 100644 --- a/core/src/components/textarea/textarea.tsx +++ b/core/src/components/textarea/textarea.tsx @@ -331,7 +331,7 @@ export class Textarea implements ComponentInterface { componentWillLoad() { this.inheritedAttributes = { ...inheritAriaAttributes(this.el), - ...inheritAttributes(this.el, ['data-form-type', 'title', 'tabindex','dir']), + ...inheritAttributes(this.el, ['data-form-type', 'title', 'tabindex', 'dir']), }; }