Closed stephen304 closed 8 years ago
I'm thinking if you are passing color in explicitly that should be used over data-color
Yeah that's what I thought too but it doesn't seem to behave that way. I can test it again later.
Here's a JSFiddle. I pass in blue via data-color and yellow via spectrum options. It ignores yellow and uses blue from data-color instead:
I've updated master to match the expected behavior
I was confused for a bit when the color picker wouldn't use the value I passed in for color, but I then discovered that it was being overridden by the value from data-color.
This should probably be noted in the documentation.