This commit is contained in:
Jeremy Ruston
2023-10-04 22:18:50 +01:00
parent b4896d79d8
commit 4f0e148bf1
+2 -1
View File
@@ -257,9 +257,10 @@ ButtonWidget.prototype.updateDomNodeClasses = function() {
};
ButtonWidget.prototype.updateDomNodeDataAttributes = function() {
var self = this;
$tw.utils.each(this.attributes,function(value,name) {
if(name.substr(0,DATA_ATTRIBUTE_PREFIX.length) === DATA_ATTRIBUTE_PREFIX) {
domNode.setAttribute(name,value);
self.domNode.setAttribute(name,value);
}
});
};