提交 1920cf2d 编写于 作者: P Phil Hughes

Gets value from native element rather than converting to jquery element

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册