Skip to content

Commit

Permalink
Merge pull request #49 from staabm/patch-2
Browse files Browse the repository at this point in the history
additionally support input type=tel, type=email on focus events
  • Loading branch information
kumailht committed Apr 15, 2016
2 parents a9a5881 + 7cb328a commit 03f09a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gridforms/gridforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ $(function() {
var focusableFields = that.el.focusableFields.selector;

if (!$(event.target).is(focusableFields)) {
$(this).find('input[type="text"], textarea, select').first().focus();
$(this).find('input[type="text"],input[type="tel"],input[type="email"], textarea, select').first().focus();
}
});
that.el.focusableFields.focus(function() {
Expand Down

0 comments on commit 03f09a3

Please sign in to comment.