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

Reset MouseIsOver when the control loses focus #12598

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

LeafShi1
Copy link
Member

@LeafShi1 LeafShi1 commented Dec 6, 2024

Fixes #12590

Proposed changes

  • Set MouseIsOver = false in OnLostFocus method of ComboBox.cs

Customer Impact

  • ComboBox dropdown button can be shown normally when switching RightToLeft property, or recreating the combobox for any other reason.

Regression?

  • Yes

Risk

  • Minimal

Screenshots

Before

When change the RightToLeft property after expanding the Popup FlatStyle comboBox, the dropdown button on the comboBox disappeared
Image

After

The dropdown button on the comboBox can be show normally
AfterChanges

Test methodology

  • Manually

Test environment(s)

  • .net 10.0.0-alpha.1.24605.1
Microsoft Reviewers: Open in CodeFlow

Copy link

codecov bot commented Dec 6, 2024

Codecov Report

Attention: Patch coverage is 96.87500% with 1 line in your changes missing coverage. Please review.

Project coverage is 76.01419%. Comparing base (af49f16) to head (9aa73b0).
Report is 106 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                 @@
##                main      #12598         +/-   ##
===================================================
+ Coverage   75.73242%   76.01419%   +0.28176%     
===================================================
  Files           3153        3175         +22     
  Lines         635807      638857       +3050     
  Branches       46975       47178        +203     
===================================================
+ Hits          481512      485622       +4110     
+ Misses        150870      149737       -1133     
- Partials        3425        3498         +73     
Flag Coverage Δ
Debug 76.01419% <96.87500%> (+0.28176%) ⬆️
integration 18.13703% <50.00000%> (-0.11750%) ⬇️
production 49.79246% <83.33333%> (+0.48693%) ⬆️
test 97.03785% <100.00000%> (-0.01208%) ⬇️
unit 46.99174% <83.33333%> (+0.72867%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

@LeafShi1 LeafShi1 changed the title Fix 12590 combo box dropdown buttonn disappear Fix 12590 combo box dropdown button disappear Dec 6, 2024
@LeafShi1 LeafShi1 changed the title Fix 12590 combo box dropdown button disappear Reset MouseIsOver when the control loses focus Dec 6, 2024
@LeafShi1 LeafShi1 added the waiting-review This item is waiting on review by one or more members of team label Dec 6, 2024
@ricardobossan
Copy link
Member

I proceeded to test this PR and the issue has been resolved:

after

All LGTM!

@Tanya-Solyanik Tanya-Solyanik added 📭 waiting-author-feedback The team requires more information from the author and removed waiting-review This item is waiting on review by one or more members of team labels Dec 8, 2024
@dotnet-policy-service dotnet-policy-service bot removed the 📭 waiting-author-feedback The team requires more information from the author label Dec 9, 2024
@Tanya-Solyanik Tanya-Solyanik added the 📭 waiting-author-feedback The team requires more information from the author label Dec 9, 2024
@dotnet-policy-service dotnet-policy-service bot removed the 📭 waiting-author-feedback The team requires more information from the author label Dec 11, 2024
@LeafShi1 LeafShi1 added the waiting-review This item is waiting on review by one or more members of team label Dec 13, 2024
@LeafShi1 LeafShi1 added the 📬 waiting-for-testing The PR is awaiting manual testing by the primary team; no action is yet required from the author(s) label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📬 waiting-for-testing The PR is awaiting manual testing by the primary team; no action is yet required from the author(s) waiting-review This item is waiting on review by one or more members of team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ComboBox dropdown button disappear when switching RightToLeft property
3 participants