Change event on select with knockout binding, how can I know if it is a real change?

前端 未结 11 1889
独厮守ぢ
独厮守ぢ 2021-01-30 08:05

I am building a permissions UI, I have a list of permissions with a select list next to each permission. The permissions are represented by an observable array of objects which

11条回答
  •  情歌与酒
    2021-01-30 08:37

    If you use an observable instead of a primitive value, the select will not raise change events on initial binding. You can continue to bind to the change event, rather than subscribing directly to the observable.

提交回复
热议问题