Stopped multiple requests with dropdowns

Opening the user dropdown currently sends 2 requests. This has been changed so only one is sent

Closes #24131
This commit is contained in:
Phil Hughes 2016-11-16 14:54:07 +00:00
parent cfcf5460b5
commit 3e33647514
2 changed files with 5 additions and 1 deletions

View file

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

View file

@ -0,0 +1,4 @@
---
title: Fixed multiple requests sent when opening dropdowns
merge_request:
author: