From 1064f61bb2fd7c4f4f704571808269a1a4842562 Mon Sep 17 00:00:00 2001 From: Szymon Porwolik Date: Wed, 12 Nov 2025 22:17:11 +0100 Subject: [PATCH] Clears form before filling the callsign on label click --- assets/js/dxwaterfall.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/assets/js/dxwaterfall.js b/assets/js/dxwaterfall.js index fe546affa..ec250cfef 100644 --- a/assets/js/dxwaterfall.js +++ b/assets/js/dxwaterfall.js @@ -1129,6 +1129,8 @@ var DX_WATERFALL_UTILS = { // Only populate form if explicitly requested if (shouldPrefill && spotInfo) { var self = this; + // Clear form before populating + DX_WATERFALL_UTILS.qsoForm.clearForm(); this.pendingNavigationTimer = setTimeout(function() { DX_WATERFALL_UTILS.qsoForm.populateFromSpot(spotInfo, true); self.pendingNavigationTimer = null; @@ -6598,6 +6600,9 @@ function setFrequency(frequencyInKHz, fromWaterfall) { dxWaterfall.updateZoomMenu(true); // Force update with forceUpdate=true }, 300); // After frequency has settled + // Clear form before populating with clicked spot + DX_WATERFALL_UTILS.qsoForm.clearForm(); + // Populate QSO form - flag will be cleared when population completes DX_WATERFALL_UTILS.qsoForm.populateFromSpot(clickedSpot, true);