Steps to reproduce
Hi,
I've disabled the alpha channel, but the alpha channel is still visible inside the hex color.
I'm aware of the previous bugfix #17
The code:
<ColorPicker
:visible-formats="['hex', 'hsl', 'rgb']"
color="#23a96a"
alpha-channel="hide"
default-format="hex"
></ColorPicker>
Current result
On load the color will be cut off
#23a96a will show as #23a9
After moving the picker
#23a9 will show as #25a468ff, with the alpha channel init.
(The color is an example, depends what color you pick ofcourse)
Side note:
Here you see the colorChange function for example:
const colorChange = (eventData) => {
console.log(eventData.cssColor);
console.log(eventData.colors.hex);
}
On load this function fires and logs the following:
#23a6
#23a69a
So on load the color.hex is correct.
After picking a color it logs:
#658784
#658784ff
now the css color is correct, but the colors.hex ain't.
Expected result
The color should not be cut off, nor display the alpha channel.
Environment
- vue-accessible-color-picker version: ^4.0.2
I'm using the newest version 4.0.2,
I might think it's a bug, or what am I doing wrong?
Thank you in advance :)