-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Description
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
- Create a
ColorPicker
withdisableAlpha
set on it https://aesoper101.github.io/vue3-colorpicker/?path=/story/example-colorpicker--disable-alpha - Click on "hex" so that the "rgba" mode is enabled.
- The text "rgba" is shown and the transparency field can be modified. To note the format of the returned pureColor seems to be correct at least for
hex
format.
Expected behavior
I expect that when I pass disableAlpha
to the component the text rgba
-> rgb
and the transparency/fourth field is not shown to the user.
Screenshots
Additional context
A "hacky workaround" is to hide the toggle completely, though it restricts users to enter hex codes only.
.vc-input-toggle {
display: none !important;
}
Metadata
Metadata
Assignees
Labels
No labels