Closed rkennedy closed 11 years ago
The jQuery UI button widget replaces the child nodes of the element it is applied on (in its _resetButton() method). The caption won't update because the original bound element is no longer there. I'll close this issue because I think that fighting against jQuery UI's implementation details would inflate the library and it would be an uphill battle anyway. I suggest to use the label option as you demonstrated in your jsfiddle.
When there's markup (such as a span) inside a button, and the markup's text is bound to an observable, changes to the observable are not reflected in the appearance of the button.
When the edit box changes, the button's caption should change accordingly. Instead, the button continues to display whatever the initial value of
Model.caption
is set to.Demonstration here: http://jsfiddle.net/rkennedy/YFcE7/