Skip to content

Commit

Permalink
Fix #52: Remove deprecated jQuery .selector
Browse files Browse the repository at this point in the history
The functionality still worked by removing the .selector
from that.el.focusableFields.
  • Loading branch information
sumpygump committed Aug 24, 2017
1 parent a1e4b23 commit f9f8b1a
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 @@ -43,7 +43,7 @@ jQuery(function($) {
events: function() {
var that = this;
that.el.fieldsContainers.click(function(event) {
var focusableFields = that.el.focusableFields.selector;
var focusableFields = that.el.focusableFields;

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

0 comments on commit f9f8b1a

Please sign in to comment.