diff --git a/core/modules/widgets/button.js b/core/modules/widgets/button.js index 39a47b68c..958b6f6da 100644 --- a/core/modules/widgets/button.js +++ b/core/modules/widgets/button.js @@ -269,7 +269,7 @@ ButtonWidget.prototype.refresh = function(changedTiddlers) { if(changedAttributes["class"]) { this.updateDomNodeClasses(); } - this.assignAttributes(domNode,{ + this.assignAttributes(this.domNodes[0],{ changedAttributes: changedAttributes, sourcePrefix: "data-", destPrefix: "data-"