Improve handling of $link widget's draggable="no" (#9262)

* fix to to improve browser's compliance with user's intent when the widget's draggable attribute is set to no

* Update link.js with comments from the PR review

indentation changed from spaces to tabs
modified else statement into a else if statement for additional specificity

---------

Co-authored-by: Frédéric Demers <fastfreddy@fdemers.ca>
This commit is contained in:
bepuzzled
2025-10-29 07:03:19 -04:00
committed by GitHub
parent 40cc62f727
commit 23f0a9bf79

View File

@@ -147,6 +147,8 @@ LinkWidget.prototype.renderLink = function(parent,nextSibling) {
dragTiddlerFn: function() {return self.to;},
widget: this
});
} else if(this.draggable === "no") {
domNode.setAttribute("draggable","false");
}
// Assign data- attributes
this.assignAttributes(domNode,{