diff --git a/app/assets/javascripts/labels_select.js b/app/assets/javascripts/labels_select.js index c1a01164559..f7a1c9f1e40 100644 --- a/app/assets/javascripts/labels_select.js +++ b/app/assets/javascripts/labels_select.js @@ -391,13 +391,13 @@ export default class LabelsSelect { .then(fadeOutLoader) .catch(fadeOutLoader); } + else if (handleClick) { + e.preventDefault(); + handleClick(label); + } else { if ($dropdown.hasClass('js-multiselect')) { - } - else if (handleClick) { - e.preventDefault(); - handleClick(label); } else { return saveLabelData();