mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-23 01:38:43 +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:
co-authored by
Frédéric Demers
parent
40cc62f727
commit
23f0a9bf79
@@ -147,6 +147,8 @@ LinkWidget.prototype.renderLink = function(parent,nextSibling) {
|
|||||||
dragTiddlerFn: function() {return self.to;},
|
dragTiddlerFn: function() {return self.to;},
|
||||||
widget: this
|
widget: this
|
||||||
});
|
});
|
||||||
|
} else if(this.draggable === "no") {
|
||||||
|
domNode.setAttribute("draggable","false");
|
||||||
}
|
}
|
||||||
// Assign data- attributes
|
// Assign data- attributes
|
||||||
this.assignAttributes(domNode,{
|
this.assignAttributes(domNode,{
|
||||||
|
|||||||
Reference in New Issue
Block a user