Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(VColorPicker): don't display 0 alpha as 1 #17323

Merged
merged 1 commit into from
May 9, 2023

Conversation

ErKeLost
Copy link
Contributor

@ErKeLost ErKeLost commented May 9, 2023

Description

Fixed logic that causes the value to become 1 if colorpicker alpha slider slides to the leftmost and causes value to be 0 to form false.

We should only judge the undefined and null types because 0 is a valid value for colorpicker, not false.

The solution is to use ! = to judge only undefined and null to make 0 a valid value

closed #17322

@ErKeLost ErKeLost changed the title fix(colorpicker): Input module getvalue logic repair fix(VColorpicker): Input module getvalue logic repair May 9, 2023
@ErKeLost ErKeLost changed the title fix(VColorpicker): Input module getvalue logic repair fix(v-colorpicker): Input module getvalue logic repair May 9, 2023
@KaelWD KaelWD added T: bug Functionality that does not work as intended/expected C: VColorPicker labels May 9, 2023
@KaelWD KaelWD added this to the v3.2.x milestone May 9, 2023
@KaelWD KaelWD changed the title fix(v-colorpicker): Input module getvalue logic repair fix(VColorPicker): don't display 0 alpha as 1 May 9, 2023
@KaelWD KaelWD merged commit 6f67aad into vuetifyjs:master May 9, 2023
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VColorPicker T: bug Functionality that does not work as intended/expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug Report][3.2.2] colorpicker Input alpha display error
2 participants