mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-04-20 20:32:50 -07: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:
parent
40cc62f727
commit
23f0a9bf79
1 changed files with 2 additions and 0 deletions
|
|
@ -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,{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue