We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3564bcf commit 7a1342cCopy full SHA for 7a1342c
src/components/input/input.ts
@@ -312,8 +312,13 @@ export class TextInput extends BaseInput<string> implements IonicFormInput {
312
// Copy remaining attributes, not handled by ionic/angular
313
copyInputAttributes(ionInputEle, nativeInputEle);
314
315
+ // prevent having tabIndex duplicated
316
+ if (ionInputEle.hasAttribute('tabIndex')) {
317
+ ionInputEle.removeAttribute('tabIndex');
318
+ }
319
+
320
+ // handle the autofocus attribute
321
if (ionInputEle.hasAttribute('autofocus')) {
- // the ion-input element has the autofocus attributes
322
ionInputEle.removeAttribute('autofocus');
323
switch (this._autoFocusAssist) {
324
case 'immediate':
0 commit comments