From e57774e1215600b669ab126187767a347fca149e Mon Sep 17 00:00:00 2001 From: Steve-Mcl Date: Sat, 12 Mar 2022 15:02:25 +0000 Subject: [PATCH] fix UI change events - use `this` not `node` in UI change events --- .../@node-red/nodes/core/network/21-httprequest.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/node_modules/@node-red/nodes/core/network/21-httprequest.html b/packages/node_modules/@node-red/nodes/core/network/21-httprequest.html index 6309a6d28..8f076d056 100644 --- a/packages/node_modules/@node-red/nodes/core/network/21-httprequest.html +++ b/packages/node_modules/@node-red/nodes/core/network/21-httprequest.html @@ -240,7 +240,7 @@ oneditprepare: function() { const node = this; $("#node-input-useAuth").on("change", function() { - if ($(node).is(":checked")) { + if ($(this).is(":checked")) { $(".node-input-useAuth-row").show(); // Nodes (< version 0.20.x) with credentials but without authentication type, need type 'basic' if (!$('#node-input-authType').val()) { @@ -255,7 +255,7 @@ RED.tray.resize(); }); $("#node-input-authType-select").on("change", function() { - const val = $(node).val(); + const val = $(this).val(); $("#node-input-authType").val(val); if (val === "basic" || val === "digest") { $(".node-input-basic-row").show(); @@ -270,7 +270,7 @@ RED.tray.resize(); }); $("#node-input-method").on("change", function() { - if ($(node).val() == "GET") { + if ($(this).val() == "GET") { $(".node-input-paytoqs-row").show(); } else { $(".node-input-paytoqs-row").hide();