Skip to content

Commit 3249dda

Browse files
committed
fix(ColorProperty): Update color when prop data changes
1 parent cb9cfe7 commit 3249dda

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • src/components/properties/ColorProperty

src/components/properties/ColorProperty/script.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ export default {
4141
};
4242
},
4343
watch: {
44+
prop(prop) {
45+
this.color = colorFloatsToHex(prop.data.value || prop.ui.default);
46+
},
4447
color(val) {
4548
this.onChange(colorHexToFloats(val));
4649
},

0 commit comments

Comments
 (0)