Commit 1920cf2d authored by Phil Hughes's avatar Phil Hughes

Gets value from native element rather than converting to jquery element

parent 49bc1cd6
......@@ -278,7 +278,7 @@ class @LabelsSelect
filterable: true
toggleLabel: (selected, el, glDropdown) ->
if glDropdown?
selectedIds = $("input[name='#{fieldName}']").map(-> $(this).val()).get()
selectedIds = $("input[name='#{fieldName}']").map(-> @value).get()
selected = _.filter glDropdown.fullData, (label) ->
selectedIds.indexOf("#{label[propertyName]}") >= 0 if label[propertyName]?
......
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