Commit 7e1d5068 authored by Clement Ho's avatar Clement Ho

[skip ci] only move user row to the top when not filtered

parent ff7419b3
......@@ -216,9 +216,9 @@
selectable: true,
fieldName: $dropdown.data('field-name'),
toggleLabel: function(selected, el, glDropdown) {
if (this.multiSelect) {
const inputValue = glDropdown.filterInput.val();
const inputValue = glDropdown.filterInput.val();
if (this.multiSelect && inputValue === '') {
const users = glDropdown.fullData.filter((r) => {
return typeof r === 'object' && !Object.prototype.hasOwnProperty.call(r, 'beforeDivider');
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment