columnSelect: trigger change on the select on change

This commit is contained in:
Felix Niklas 2016-02-10 11:42:35 +01:00
parent 2c5bfea046
commit efea3648fc

View file

@ -50,6 +50,7 @@ class App.ColumnSelect extends Spine.Controller
@pool.find("[data-value='#{value}']").addClass 'is-hidden'
@values.push(value)
@shadow.val(@values)
@shadow.trigger('change')
@placeholder.addClass 'is-hidden'
@ -64,6 +65,7 @@ class App.ColumnSelect extends Spine.Controller
@selected.find("[data-value='#{value}']").addClass 'is-hidden'
@values.splice(@values.indexOf(value), 1)
@shadow.val(@values)
@shadow.trigger('change')
if !@values.length
@placeholder.removeClass 'is-hidden'