baianat / verte

🎨 A Color picker component. Built from the bottom to work with Vue.js.
https://baianat.github.io/verte/
MIT License
181 stars 42 forks source link

Not change value with first click #47

Open FRiMN opened 5 years ago

FRiMN commented 5 years ago

Describe the bug Widgets with a set black color (or without a set value) the first time you click in the color selection canvas, the value does not change.

It appears on examples page.

To Reproduce Steps to reproduce the behavior:

  1. Go to examples page in docs
  2. Click on any widget with set black color (or withour a set value)
  3. Click on color choose canvas
  4. See is value not change

Expected behavior Value is change

Desktop (please complete the following information):

hbsoftco commented 4 years ago

I have same problem!

Zuwie commented 3 years ago

Same problem for me in 2021/08.

As a workaround I change the value of it when mounted

private async mounted() { const originalColor = this.colorHex; this.colorHex = '#ff00ff'; await this.$nextTick(); this.colorHex = originalColor; }