mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-02-01 23:47:35 +00:00
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:
@@ -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,{
|
||||
|
||||
Reference in New Issue
Block a user