trigger blur on taglist in getValue() to not loose just typed content (previous fix stoped selection of suggestions by mouse)

This commit is contained in:
Ralf Becker 2014-09-10 10:02:43 +00:00
parent a8f284b588
commit c775582af2
2 changed files with 3 additions and 1 deletions

View File

@ -343,6 +343,8 @@ var et2_taglist = et2_selectbox.extend(
getValue: function() getValue: function()
{ {
if(this.taglist == null) return null; if(this.taglist == null) return null;
// trigger blur on taglist to not loose just typed value
jQuery(this.taglist.container).trigger('blur');
return this.taglist.getValue(); return this.taglist.getValue();
} }
}); });

View File

@ -871,7 +871,7 @@
style: cfg.style style: cfg.style
}).width(w); }).width(w);
ms.container.focus($.proxy(handlers._onFocus, this)); ms.container.focus($.proxy(handlers._onFocus, this));
ms.container.focusout($.proxy(handlers._onBlur, this)); ms.container.blur($.proxy(handlers._onBlur, this));
ms.container.keydown($.proxy(handlers._onKeyDown, this)); ms.container.keydown($.proxy(handlers._onKeyDown, this));
ms.container.keyup($.proxy(handlers._onKeyUp, this)); ms.container.keyup($.proxy(handlers._onKeyUp, this));