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

ColorPicker: Fix app crash when clearing input fields #3224

Conversation

Felix-Dev
Copy link
Contributor

@Felix-Dev Felix-Dev commented Sep 1, 2020

Description

This PR fixes an app crash when clearing either the hex- or alpha channel input field of the ColorPicker.

Note: While the linked issue only mentions an app crash occuring when clearing the hex input field, looking further into the ColorPicker implementation, I noticed that clearing the alpha channel also wasn't specifically guarded against, resulting in an app crash as well. I've added the required check for that in this PR as well.

Motivation and Context

Fixes #3222.

How Has This Been Tested?

Tested manually and added API tests.

@msft-github-bot msft-github-bot added the needs-triage Issue needs to be triaged by the area owners label Sep 1, 2020
@StephenLPeters StephenLPeters added area-ColorPicker team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Sep 1, 2020
Copy link
Contributor

@StephenLPeters StephenLPeters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@StephenLPeters
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters StephenLPeters merged commit 6097584 into microsoft:master Sep 2, 2020
@Felix-Dev Felix-Dev deleted the user/Felix-Dev/colorpicker-clearinginputfields-crash-fix branch September 3, 2020 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-ColorPicker team-Controls Issue for the Controls team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UWP or Xaml Island app crashes on pressing the clear button in the hex Input textbox in ColorPicker
3 participants