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:07 +00:00
parent 1cdc989f18
commit a4d18fdce2
2 changed files with 3 additions and 1 deletions

View File

@ -343,6 +343,8 @@ var et2_taglist = et2_selectbox.extend(
getValue: function()
{
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();
}
});

View File

@ -871,7 +871,7 @@
style: cfg.style
}).width(w);
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.keyup($.proxy(handlers._onKeyUp, this));