From f9f8b1a70ccb1d1918d456e362ad00d1024abebc Mon Sep 17 00:00:00 2001 From: Jansen Price Date: Thu, 24 Aug 2017 08:32:34 -0500 Subject: [PATCH] Fix #52: Remove deprecated jQuery .selector The functionality still worked by removing the .selector from that.el.focusableFields. --- gridforms/gridforms.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gridforms/gridforms.js b/gridforms/gridforms.js index 633160e..d29de85 100644 --- a/gridforms/gridforms.js +++ b/gridforms/gridforms.js @@ -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();