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

TextBox - reset Text when pushing null to bound value #1303

Merged
merged 1 commit into from
Jul 26, 2019

Conversation

davidjohnoliver
Copy link
Contributor

Fix regression where a null pushed to Text via binding was being ignored, rather than clearing the Text.

GitHub Issue (If applicable): fixes #1302

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

What is the new behavior?

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tested code with current supported SDKs
  • Docs have been added/updated which fit documentation template. (for bug fixes / features)
  • Unit Tests and/or UI Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Wasm UI Tests are not showing unexpected any differences. Validate PR Screenshots Compare Test Run results.
  • Contains NO breaking changes
  • Updated the Release Notes
  • Associated with an issue (GitHub or internal)

Other information

Internal Issue (If applicable):

Fix regression where a null pushed to Text via binding was being ignored, rather than clearing the Text.
public void When_Binding_Set_Null()
{
var textBox = new TextBox();
var source = new MySource() { SourceText = "Spinach" };
Copy link
Member

Choose a reason for hiding this comment

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

Love your samples ;-)

set {
if (value == null)
{
throw new ArgumentNullException();
Copy link
Member

Choose a reason for hiding this comment

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

Is it the behavior of UWP? Surprising...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep

@carldebilly
Copy link
Member

/azp run

@davidjohnoliver davidjohnoliver merged commit 0bb0627 into master Jul 26, 2019
@delete-merged-branch delete-merged-branch bot deleted the dev/djo/textbox-fix branch July 26, 2019 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TextBox does not clear when binding set to null
3 participants