Commit 99e7c917 authored by Rémy Coutable's avatar Rémy Coutable

When looking for a filter hidden input field, look for it by name only

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 908700e1
...@@ -262,7 +262,7 @@ class GitLabDropdown ...@@ -262,7 +262,7 @@ class GitLabDropdown
if @renderedData if @renderedData
selectedObject = @renderedData[selectedIndex] selectedObject = @renderedData[selectedIndex]
value = if @options.id then @options.id(selectedObject, el) else selectedObject.id value = if @options.id then @options.id(selectedObject, el) else selectedObject.id
field = @dropdown.parent().find("input[name='#{fieldName}'][value='#{value}']") field = @dropdown.parent().find("input[name='#{fieldName}']")
if el.hasClass(ACTIVE_CLASS) if el.hasClass(ACTIVE_CLASS)
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