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 })