Prevent bug where edges where auto-added

This commit is contained in:
Lea Verou
2025-03-16 17:25:22 -04:00
parent 1b26bee1af
commit 12b2ab133a

View File

@@ -223,8 +223,15 @@ export default {
},
},
watch: {
colorCurrentString() {
this.$emit('update:color', this.colorCurrent);
async colorCurrentString() {
if (!this.colorComponent) {
// If we're monitoring a specific color component, we can key off changes to that value
await this.$nextTick();
if (this.color + '' !== this.colorCurrentString) {
// Still different
this.$emit('update:color', this.colorCurrent);
}
}
},
async colorComponentValue() {