Commit 65de9b33 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Return the selected object when unselecting option from dropdown

parent 1494e81f
...@@ -562,10 +562,9 @@ ...@@ -562,10 +562,9 @@
field.remove(); field.remove();
} }
if (this.options.toggleLabel) { if (this.options.toggleLabel) {
return this.updateLabel(selectedObject, el, this); this.updateLabel(selectedObject, el, this);
} else {
return selectedObject;
} }
return selectedObject;
} else if (el.hasClass(INDETERMINATE_CLASS)) { } else if (el.hasClass(INDETERMINATE_CLASS)) {
el.addClass(ACTIVE_CLASS); el.addClass(ACTIVE_CLASS);
el.removeClass(INDETERMINATE_CLASS); el.removeClass(INDETERMINATE_CLASS);
......
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