From f6ac49475c3dabc609e4dfa85ba25c32067174c6 Mon Sep 17 00:00:00 2001 From: brunops Date: Mon, 27 Apr 2015 10:46:16 -0700 Subject: [PATCH] Fix comments --- build/js/intlTelInput.js | 3 +-- src/js/intlTelInput.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/build/js/intlTelInput.js b/build/js/intlTelInput.js index a2493c2c1..92936b14b 100644 --- a/build/js/intlTelInput.js +++ b/build/js/intlTelInput.js @@ -175,13 +175,12 @@ https://github.com/Bluefieldscom/intl-tel-input.git this.telInput.wrap($("
", { "class": "intl-tel-input" })); - // define "tabindex" for accessibility - // this way, element is focusable and tab naviagable this.flagsContainer = $("
", { "class": "flag-dropdown" }).insertBefore(this.telInput); // currently selected flag (displayed to left of input) var selectedFlag = $("
", { + // make element focusable and tab naviagable tabindex: "0", "class": "selected-flag" }).appendTo(this.flagsContainer); diff --git a/src/js/intlTelInput.js b/src/js/intlTelInput.js index afe7d9c40..373d5d3dd 100644 --- a/src/js/intlTelInput.js +++ b/src/js/intlTelInput.js @@ -200,14 +200,13 @@ Plugin.prototype = { "class": "intl-tel-input" })); - // define "tabindex" for accessibility - // this way, element is focusable and tab naviagable this.flagsContainer = $("
", { "class": "flag-dropdown" }).insertBefore(this.telInput); // currently selected flag (displayed to left of input) var selectedFlag = $("
", { + // make element focusable and tab naviagable "tabindex": "0", "class": "selected-flag" }).appendTo(this.flagsContainer);