bgrins / spectrum

The No Hassle JavaScript Colorpicker
https://bgrins.github.io/spectrum/
MIT License
2.32k stars 588 forks source link

Spectrum component is getting reused #544

Closed DelfsEngineering closed 5 years ago

DelfsEngineering commented 5 years ago

In a use case where there are several instances of VFG, I am seeing the spectrum element getting reused. An example would be an accordion where you have multiple instances of VFG for various contacts.

In this example you can see the name field is mapping correctly but the spectrum element does not and only the first myArray is getting updated. I have tried adding a unique id key but I suspect Vue needs a unique key property set. https://jsfiddle.net/s8vqmw0L/2/

DelfsEngineering commented 5 years ago

Wrong repo