From d105b8c7513e28f44c7349216cbd089241c68278 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 9 Mar 2016 17:37:04 +0000 Subject: [PATCH] Avoid taking focus when setting value programmatically --- etemplate/js/et2_widget_taglist.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/etemplate/js/et2_widget_taglist.js b/etemplate/js/et2_widget_taglist.js index 14b605955d..31be528628 100644 --- a/etemplate/js/et2_widget_taglist.js +++ b/etemplate/js/et2_widget_taglist.js @@ -720,8 +720,9 @@ var et2_taglist = (function(){ "use strict"; return et2_selectbox.extend([et2_IR { this._set_multiple(multiple); } - - this.taglist.setSelection(values); + + this.taglist.clear(true); + this.taglist.addToSelection(values,true); }, getValue: function()