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(Button): Command binding resetting on CanExecution exception #18378

Conversation

Xiaoy312
Copy link
Contributor

@Xiaoy312 Xiaoy312 commented Oct 3, 2024

GitHub Issue (If applicable): closes unoplatform/kahua-private#199

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

If Button::Command binding produces an ICommand value that throws Exception in its CanExecute, this value will be canceled and replaced by the Binding::FallbackValue. This does not happen on windows.

What is the new behavior?

^ should not happen anymore.

PR Checklist

Please check if your PR fulfills the following requirements:

@Xiaoy312 Xiaoy312 force-pushed the dev/xygu/20241003/button-command-binding-reset-on-exception branch from 669a158 to 82846ba Compare October 3, 2024 16:44
@Xiaoy312
Copy link
Contributor Author

Xiaoy312 commented Oct 3, 2024

unstable tests:

  • ios: ValidateOverflowScrollViewerDoesNotScrollWithArrowKeys
  • ios: When_Stretch(Fill, True)

@jeromelaban
Copy link
Member

@Mergifyio backport release/stable/5.4

@jeromelaban jeromelaban enabled auto-merge October 3, 2024 17:50
Copy link
Contributor

mergify bot commented Oct 3, 2024

backport release/stable/5.4

✅ Backports have been created

@jeromelaban jeromelaban disabled auto-merge October 4, 2024 02:55
@jeromelaban jeromelaban merged commit 4a4d515 into master Oct 4, 2024
107 of 109 checks passed
@jeromelaban jeromelaban deleted the dev/xygu/20241003/button-command-binding-reset-on-exception branch October 4, 2024 02:55
jeromelaban added a commit that referenced this pull request Oct 4, 2024
…5.4/pr-18378

fix(Button): Command binding resetting on CanExecution exception (backport #18378)
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.

2 participants