Skip to content

Commit

Permalink
No need for tabindex when its a button element
Browse files Browse the repository at this point in the history
  • Loading branch information
jackocnr committed Jul 20, 2024
1 parent e7cbadf commit 18a25e7
Show file tree
Hide file tree
Showing 12 changed files with 2 additions and 23 deletions.
2 changes: 0 additions & 2 deletions build/js/intlTelInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -1726,8 +1726,6 @@ var factoryOutput = (() => {
);
if (this.telInput.disabled) {
this.selectedCountry.setAttribute("aria-disabled", "true");
} else {
this.selectedCountry.setAttribute("tabindex", "0");
}
} else {
this.selectedCountry = createEl(
Expand Down
2 changes: 1 addition & 1 deletion build/js/intlTelInput.min.js

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions build/js/intlTelInputWithUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1725,8 +1725,6 @@ var factoryOutput = (() => {
);
if (this.telInput.disabled) {
this.selectedCountry.setAttribute("aria-disabled", "true");
} else {
this.selectedCountry.setAttribute("tabindex", "0");
}
} else {
this.selectedCountry = createEl(
Expand Down
2 changes: 1 addition & 1 deletion build/js/intlTelInputWithUtils.min.js

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions react/build/IntlTelInput.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -1721,8 +1721,6 @@ var Iti = class {
);
if (this.telInput.disabled) {
this.selectedCountry.setAttribute("aria-disabled", "true");
} else {
this.selectedCountry.setAttribute("tabindex", "0");
}
} else {
this.selectedCountry = createEl(
Expand Down
2 changes: 0 additions & 2 deletions react/build/IntlTelInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -1685,8 +1685,6 @@ var Iti = class {
);
if (this.telInput.disabled) {
this.selectedCountry.setAttribute("aria-disabled", "true");
} else {
this.selectedCountry.setAttribute("tabindex", "0");
}
} else {
this.selectedCountry = createEl(
Expand Down
2 changes: 0 additions & 2 deletions react/build/IntlTelInputWithUtils.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -1721,8 +1721,6 @@ var Iti = class {
);
if (this.telInput.disabled) {
this.selectedCountry.setAttribute("aria-disabled", "true");
} else {
this.selectedCountry.setAttribute("tabindex", "0");
}
} else {
this.selectedCountry = createEl(
Expand Down
2 changes: 0 additions & 2 deletions react/build/IntlTelInputWithUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1685,8 +1685,6 @@ var Iti = class {
);
if (this.telInput.disabled) {
this.selectedCountry.setAttribute("aria-disabled", "true");
} else {
this.selectedCountry.setAttribute("tabindex", "0");
}
} else {
this.selectedCountry = createEl(
Expand Down
2 changes: 0 additions & 2 deletions react/demo/set-number-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -25214,8 +25214,6 @@
);
if (this.telInput.disabled) {
this.selectedCountry.setAttribute("aria-disabled", "true");
} else {
this.selectedCountry.setAttribute("tabindex", "0");
}
} else {
this.selectedCountry = createEl(
Expand Down
2 changes: 0 additions & 2 deletions react/demo/simple-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -25214,8 +25214,6 @@
);
if (this.telInput.disabled) {
this.selectedCountry.setAttribute("aria-disabled", "true");
} else {
this.selectedCountry.setAttribute("tabindex", "0");
}
} else {
this.selectedCountry = createEl(
Expand Down
2 changes: 0 additions & 2 deletions react/demo/validation-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -25214,8 +25214,6 @@
);
if (this.telInput.disabled) {
this.selectedCountry.setAttribute("aria-disabled", "true");
} else {
this.selectedCountry.setAttribute("tabindex", "0");
}
} else {
this.selectedCountry = createEl(
Expand Down
3 changes: 0 additions & 3 deletions src/js/intl-tel-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -844,9 +844,6 @@ export class Iti {

if (this.telInput.disabled) {
this.selectedCountry.setAttribute("aria-disabled", "true");
} else {
//* Make element focusable and tab navigable.
this.selectedCountry.setAttribute("tabindex", "0");
}
} else {
this.selectedCountry = createEl(
Expand Down

0 comments on commit 18a25e7

Please sign in to comment.