From cfba2eea335caeceb2aa8a749e25fbf66a6c3e96 Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 11 Apr 2017 10:14:43 -0600 Subject: [PATCH] Make sure magicsuggest loses its focus class to avoid focus stealing issues with multiple on a page --- api/js/etemplate/et2_widget_taglist.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/js/etemplate/et2_widget_taglist.js b/api/js/etemplate/et2_widget_taglist.js index 47869b1b47..6a9b5828f1 100644 --- a/api/js/etemplate/et2_widget_taglist.js +++ b/api/js/etemplate/et2_widget_taglist.js @@ -401,6 +401,11 @@ var et2_taglist = (function(){ "use strict"; return et2_selectbox.extend([et2_IR // Do size limit checks this.resize(); + // Make sure magicsuggest loses focus class to prevent issues with + // multiple on the page + this.div.on('blur', 'input', function() { + jQuery('.ms-ctn-focus', widget.div).removeClass('ms-ctn-focus'); + }) return true; },