fix errors within gl_dropdown_spec.js when running in Karma

This commit is contained in:
Mike Greiling 2017-02-02 12:57:28 -06:00
parent 42086615e5
commit bccd791d4d

View file

@ -249,7 +249,7 @@
_this.fullData = data;
_this.parseData(_this.fullData);
_this.focusTextInput();
if (_this.options.filterable && _this.filter && _this.filter.input && _this.filter.input.val().trim() !== '') {
if (_this.options.filterable && _this.filter && _this.filter.input && _this.filter.input.val() && _this.filter.input.val().trim() !== '') {
return _this.filter.input.trigger('input');
}
};