From 23f0a9bf79f1df1aa1974a2e446d89d41cc7eada Mon Sep 17 00:00:00 2001 From: bepuzzled <17093421+bepuzzled@users.noreply.github.com> Date: Wed, 29 Oct 2025 07:03:19 -0400 Subject: [PATCH] Improve handling of $link widget's draggable="no" (#9262) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- core/modules/widgets/link.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/modules/widgets/link.js b/core/modules/widgets/link.js index 896b1c5307..d2c5995424 100755 --- a/core/modules/widgets/link.js +++ b/core/modules/widgets/link.js @@ -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,{