Clears form before filling the callsign on label click

This commit is contained in:
Szymon Porwolik
2025-11-12 22:17:11 +01:00
parent 5b52c06e60
commit 1064f61bb2

View File

@@ -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);