Skip to content

Commit

Permalink
Merge pull request #216 from brunops/minor-fixes
Browse files Browse the repository at this point in the history
Fix comments
  • Loading branch information
jackocnr committed Apr 27, 2015
2 parents 84bd6ff + f6ac494 commit 53a1ae2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions build/js/intlTelInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,12 @@ https://github.com/Bluefieldscom/intl-tel-input.git
this.telInput.wrap($("<div>", {
"class": "intl-tel-input"
}));
// define "tabindex" for accessibility
// this way, element is focusable and tab naviagable
this.flagsContainer = $("<div>", {
"class": "flag-dropdown"
}).insertBefore(this.telInput);
// currently selected flag (displayed to left of input)
var selectedFlag = $("<div>", {
// make element focusable and tab naviagable
tabindex: "0",
"class": "selected-flag"
}).appendTo(this.flagsContainer);
Expand Down
3 changes: 1 addition & 2 deletions src/js/intlTelInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,14 +200,13 @@ Plugin.prototype = {
"class": "intl-tel-input"
}));

// define "tabindex" for accessibility
// this way, element is focusable and tab naviagable
this.flagsContainer = $("<div>", {
"class": "flag-dropdown"
}).insertBefore(this.telInput);

// currently selected flag (displayed to left of input)
var selectedFlag = $("<div>", {
// make element focusable and tab naviagable
"tabindex": "0",
"class": "selected-flag"
}).appendTo(this.flagsContainer);
Expand Down

0 comments on commit 53a1ae2

Please sign in to comment.