Commit ab42560e authored by Alfredo Sumaran's avatar Alfredo Sumaran

Return selected object if toggleLabel option is not defined

parent ff676333
......@@ -352,6 +352,8 @@ class GitLabDropdown
# Toggle the dropdown label
if @options.toggleLabel
$(@el).find(".dropdown-toggle-text").text @options.toggleLabel
else
selectedObject
else
if !value?
field.remove()
......
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