Commit 058b6f71 authored by Clement Ho's avatar Clement Ho

[skip ci] Fix bug where checkmark was removed after the user dropdown was opened

parent c7e62a3e
......@@ -357,9 +357,15 @@ import eventHub from './sidebar/event_hub';
const $el = $(e.currentTarget);
$el.find('.is-active').removeClass('is-active');
const initialSelected = getSelected().forEach((selectedId) => {
$el.find(`li[data-user-id="${selectedId}"] .dropdown-menu-user-link`).addClass('is-active');
});
function highlightSelected(id) {
$el.find(`li[data-user-id="${id}"] .dropdown-menu-user-link`).addClass('is-active');
}
if ($selectbox[0]) {
getSelected().forEach((selectedId) => highlightSelected(selectedId));
} else {
highlightSelected(selectedId);
}
},
updateLabel: $dropdown.data('dropdown-title'),
renderRow: function(user) {
......
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