Skip to content

Commit

Permalink
additionally support input type=tel, type=email on focus events
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Apr 15, 2016
1 parent 88bf68e commit 7cb328a
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 7cb328a

Please sign in to comment.