Skip to content

String template is not working for popovers #40

Closed
@maz4focus

Description

Hi,
in the function "renderPopoverTemplate", the following line didnt work for us:
ko.renderTemplate(ko.unwrap(value.template), bindingContext.createChildContext(data), value.templateOptions, document.getElementById(id));

We had to modify it:
ko.renderTemplate(ko.unwrap(value.template).name, bindingContext.createChildContext(data), value.template, document.getElementById(id));

We changed the following:
pass ko.unwrap(value.template).name, not ko.unwrap(value.template),

pass value.template, not value.templateOptions.

Only this way, we were able to have the popover binding work with a registred template.

Kind regards,
Marco

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions