Skip to content

Commit fc75f89

Browse files
authored
Merge pull request #52 from pkendall64/master
Fix clear not clearing the bind-phrase
2 parents 7620737 + b872113 commit fc75f89

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/components/BindPhraseInput.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,14 @@ watch(() => model.value, (newVal) => {
3939
}, { immediate: true })
4040
4141
watch(() => props.bindPhraseText, (newVal) => {
42-
if (newVal && !bindPhrase.value) {
43-
bindPhrase.value = newVal
42+
if (newVal) {
43+
if (!bindPhrase.value) {
44+
bindPhrase.value = newVal
45+
generateUID()
46+
}
47+
} else {
48+
// Parent cleared bind phrase (e.g. "Clear Stored Settings")
49+
bindPhrase.value = null
4450
generateUID()
4551
}
4652
}, { immediate: true })

0 commit comments

Comments
 (0)