From d204d9b2b503def42ff701bf4ce9fa2e4d463213 Mon Sep 17 00:00:00 2001 From: Jason Demeuse Date: Tue, 21 Feb 2017 13:35:09 -0800 Subject: [PATCH] Remove deprecated andSelf that caused error on blur. Add addback() instead --- jquery.selectBox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.selectBox.js b/jquery.selectBox.js index e4c7b8f..42c4c92 100755 --- a/jquery.selectBox.js +++ b/jquery.selectBox.js @@ -548,7 +548,7 @@ $(document).bind('mousedown.selectBox', function (event) { if (1 === event.which) { - if ($(event.target).parents().andSelf().hasClass('selectBox-options')) { + if ($(event.target).parents().addBack().hasClass('selectBox-options')) { return; } self.hideMenus();