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