billpull / knockout-bootstrap

A plugin that adds custom bindings for twitter bootstrap objects such as tooltips and popovers.
233 stars 69 forks source link

Ability to optionally not control descendant bindings on popover #78

Closed rsbondi closed 8 years ago

rsbondi commented 8 years ago

If no option is passed the existing functionality of controlsDescendantBindings being true is maintained.

Adding controlDescendants: false as a binding parameter will use the knockout default handling of descendants.

This allows the following

<a data-bind="popover: {...}"><span data-bind="text: variable"></span></a>

without the loss of the span's text binding

I intended to update the docs with this PR, but I can not resolve the repository with the website

rsbondi commented 8 years ago

77