From 6a8cf1b7686ca7fd62aa00e05eba089225359d31 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Tue, 13 Apr 2021 13:24:54 +0100 Subject: [PATCH] Fix variable reference error in editableList Fixes #2933 --- .../editor-client/src/js/ui/common/editableList.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/common/editableList.js b/packages/node_modules/@node-red/editor-client/src/js/ui/common/editableList.js index 7f823289e..00666e5b4 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/common/editableList.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/common/editableList.js @@ -71,7 +71,7 @@ var buttons = this.options.buttons || []; if (this.options.addButton !== false) { - var addLabel, addTittle; + var addLabel, addTitle; if (typeof this.options.addButton === 'string') { addLabel = this.options.addButton } else { @@ -102,7 +102,7 @@ button.click(evt); } }); - + if (button.title) { element.attr("title", button.title); } @@ -113,7 +113,7 @@ element.append($("").text(" " + button.label)); } }); - + if (this.element.css("position") === "absolute") { ["top","left","bottom","right"].forEach(function(s) { var v = that.element.css(s);