Browse Source

Added 'change' events to ColorPicker

Nicolaj Egelund 8 years ago
parent
commit
9d8fb8e0e3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      packages/color-picker/src/main.vue

+ 2 - 0
packages/color-picker/src/main.vue

@@ -74,10 +74,12 @@
     methods: {
       confirmValue(value) {
         this.$emit('input', this.color.value);
+        this.$emit('change', this.color.value);
         this.showPicker = false;
       },
       clearValue() {
         this.$emit('input', null);
+        this.$emit('change', null);
         this.showPanelColor = false;
         this.showPicker = false;
         this.resetColor();