Skip to content

Commit 737082a

Browse files
authored
feat: add dir attribute to the list of inherited attributes of the native input
1 parent f6f8427 commit 737082a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/components/input/input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ export class Input implements ComponentInterface {
341341
componentWillLoad() {
342342
this.inheritedAttributes = {
343343
...inheritAriaAttributes(this.el),
344-
...inheritAttributes(this.el, ['tabindex', 'title', 'data-form-type']),
344+
...inheritAttributes(this.el, ['tabindex', 'title', 'data-form-type', 'dir']),
345345
};
346346
}
347347

core/src/components/textarea/textarea.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ export class Textarea implements ComponentInterface {
331331
componentWillLoad() {
332332
this.inheritedAttributes = {
333333
...inheritAriaAttributes(this.el),
334-
...inheritAttributes(this.el, ['data-form-type', 'title', 'tabindex','dir']),
334+
...inheritAttributes(this.el, ['data-form-type', 'title', 'tabindex', 'dir']),
335335
};
336336
}
337337

0 commit comments

Comments
 (0)