Skip to content

Commit b97ed4f

Browse files
committed
ColorFieldtype now stores updated values when you click away.
1 parent d6d8676 commit b97ed4f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

resources/js/components/fieldtypes/ColorFieldtype.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ export default {
8181
value(value) {
8282
this.customColor = value;
8383
},
84+
85+
popoverOpen(isOpen) {
86+
if (!isOpen && this.customColor !== this.value) {
87+
this.commitCustomColor();
88+
}
89+
},
8490
},
8591
8692
computed: {

0 commit comments

Comments
 (0)