Circular dependency of knockout computed

后端 未结 3 2116
日久生厌
日久生厌 2021-01-12 05:40

see working jsFiddle: http://jsfiddle.net/ruslans/vFK82/

I have 3 fields: Net Price (ex. tax), tax amount and Total price (price ex. vat + tax amount). the NetPrice

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-12 06:03

    Can't promise this will fix the problem, but sometimes enabling deferred updates can fix problems like this.

    It's a good feature to be aware of, but be cautious about enabling it for an already working application - and also if you do have an underlying problem then you'll still want to fix that.

    http://knockoutjs.com/documentation/deferred-updates.html

提交回复
热议问题