fix(color-picker): change event only shows old color value
parent
bed58e4f80
commit
13988e35f1
|
@ -97,7 +97,10 @@ export default {
|
||||||
this.updateColorHandle();
|
this.updateColorHandle();
|
||||||
this.updateInput();
|
this.updateInput();
|
||||||
this.updateModel();
|
this.updateModel();
|
||||||
this.$emit('change', { event: event, value: this.modelValue });
|
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$emit('change', { event: event, value: this.modelValue });
|
||||||
|
});
|
||||||
},
|
},
|
||||||
pickHue(event) {
|
pickHue(event) {
|
||||||
let top = this.hueView.getBoundingClientRect().top + (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0);
|
let top = this.hueView.getBoundingClientRect().top + (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0);
|
||||||
|
@ -113,7 +116,10 @@ export default {
|
||||||
this.updateHue();
|
this.updateHue();
|
||||||
this.updateModel();
|
this.updateModel();
|
||||||
this.updateInput();
|
this.updateInput();
|
||||||
this.$emit('change', { event: event, value: this.modelValue });
|
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$emit('change', { event: event, value: this.modelValue });
|
||||||
|
});
|
||||||
},
|
},
|
||||||
updateModel() {
|
updateModel() {
|
||||||
switch (this.format) {
|
switch (this.format) {
|
||||||
|
|
Loading…
Reference in New Issue