From bb941571e22d79ed99b1aa067f064a080d743922 Mon Sep 17 00:00:00 2001 From: Phillip Rak Date: Tue, 6 Aug 2024 10:14:59 -0700 Subject: [PATCH] Fix reactivity in `NameNsDescription.vue` Signed-off-by: Phillip Rak --- shell/components/form/NameNsDescription.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shell/components/form/NameNsDescription.vue b/shell/components/form/NameNsDescription.vue index 5f5d291bdf..2928cff44b 100644 --- a/shell/components/form/NameNsDescription.vue +++ b/shell/components/form/NameNsDescription.vue @@ -323,12 +323,12 @@ export default { } else { this.value.metadata['name'] = val; } - this.$emit('change'); + this.$emit('update:value', this.value); }, namespace(val) { this.updateNamespace(val); - this.$emit('change'); + this.$emit('update:value', this.value); }, description(val) { @@ -337,7 +337,7 @@ export default { } else { this.value.setAnnotation(DESCRIPTION, val); } - this.$emit('change'); + this.$emit('update:value', this.value); }, }, @@ -386,7 +386,7 @@ export default { true, ); this.$emit('isNamespaceNew', true); - nextTick(() => this.$refs.namespace.focus()); + this.$nextTick(() => this.$refs.namespace.focus()); } else { this.createNamespace = false; this.$store.dispatch(