File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -338,6 +338,22 @@ export class Input implements ComponentInterface {
338338 }
339339 }
340340
341+ /**
342+ * dir is a globally enumerated attribute.
343+ * As a result, creating these as properties
344+ * can have unintended side effects. Instead, we
345+ * listen for attribute changes and inherit them
346+ * to the inner `<input>` element.
347+ */
348+ @Watch ( 'dir' )
349+ onDirChanged ( newValue : string ) {
350+ this . inheritedAttributes = {
351+ ...this . inheritedAttributes ,
352+ dir : newValue ,
353+ } ;
354+ forceUpdate ( this ) ;
355+ }
356+
341357 componentWillLoad ( ) {
342358 this . inheritedAttributes = {
343359 ...inheritAriaAttributes ( this . el ) ,
Original file line number Diff line number Diff line change @@ -261,6 +261,22 @@ export class Textarea implements ComponentInterface {
261261 this . runAutoGrow ( ) ;
262262 }
263263
264+ /**
265+ * dir is a globally enumerated attribute.
266+ * As a result, creating these as properties
267+ * can have unintended side effects. Instead, we
268+ * listen for attribute changes and inherit them
269+ * to the inner `<input>` element.
270+ */
271+ @Watch ( 'dir' )
272+ onDirChanged ( newValue : string ) {
273+ this . inheritedAttributes = {
274+ ...this . inheritedAttributes ,
275+ dir : newValue ,
276+ } ;
277+ forceUpdate ( this ) ;
278+ }
279+
264280 /**
265281 * The `ionChange` event is fired when the user modifies the textarea's value.
266282 * Unlike the `ionInput` event, the `ionChange` event is fired when
You can’t perform that action at this time.
0 commit comments