Merge branch 'user-dropdown-multiple-requests-fix' into 'master'

Stopped multiple requests with dropdowns

## What does this MR do?

Fixes an issue where the user dropdown would send 2 requests when the user opens the dropdown.

## What are the relevant issue numbers?

Closes #24131

See merge request !7505
This commit is contained in:
Fatih Acet 2016-11-16 16:54:50 +00:00
commit a65f83c6de
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: