Skip to content

Commit

Permalink
Fix automatic usage-tracking for src when using the new widget
Browse files Browse the repository at this point in the history
  • Loading branch information
bago committed Jun 1, 2022
1 parent e90e568 commit a1d8a10
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/js/widgets/src.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ var widgetPlugin = {
return {
widget: 'src',
html: function(propAccessor, onfocusbinding, parameters) {
return '<span data-bind="template: { name: \'widget-src\', data: { _src: ' + propAccessor + ' } }"></span>';
var html = '<!-- ko letproxy: { prop: ' + propAccessor + ' } -->';
html += '<span data-bind="template: { name: \'widget-src\', data: { _src: prop } }"></span>';
html += '<!-- /ko -->';
return html;
}
};
},
Expand Down

0 comments on commit a1d8a10

Please sign in to comment.