From 24c0f9370b3f2cde8dd7497517aae666995bbb7a Mon Sep 17 00:00:00 2001 From: Nivedin <53208152+nivedin@users.noreply.github.com> Date: Tue, 19 Aug 2025 19:55:31 +0530 Subject: [PATCH] fix: update masked secret environment value after replace action (#5335) --- .../src/components/smart/EnvInput.vue | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packages/hoppscotch-common/src/components/smart/EnvInput.vue b/packages/hoppscotch-common/src/components/smart/EnvInput.vue index 748baae8..8c9643fb 100644 --- a/packages/hoppscotch-common/src/components/smart/EnvInput.vue +++ b/packages/hoppscotch-common/src/components/smart/EnvInput.vue @@ -177,6 +177,19 @@ watch( } ) +//update secretText when modelValue changes +watch( + () => props.modelValue, + (newVal) => { + if (secretText.value !== newVal) { + secretText.value = newVal + } + }, + { + immediate: true, + } +) + onClickOutside(autoCompleteWrapper, () => { showSuggestionPopover.value = false })