Skip to content

MudSelect: Fix menu toggled on non-primary mouse clicks #11002

Merged
henon merged 3 commits intoMudBlazor:devfrom
versile2:fix/selectrightclick
Mar 13, 2025
Merged

MudSelect: Fix menu toggled on non-primary mouse clicks #11002
henon merged 3 commits intoMudBlazor:devfrom
versile2:fix/selectrightclick

Conversation

@versile2
Copy link
Contributor

@versile2 versile2 commented Mar 12, 2025

Description

Separate mousedown event from ToggleMenu and wire it to only fire when left click is used.
Resolves #10984

How Has This Been Tested?

Visually and Added a unit test

Type of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation (fix or improvement to the website or code docs)

Checklist

  • The PR is submitted to the correct branch (dev).
  • My code follows the code style of this project.
  • I've added relevant tests.

@versile2 versile2 requested a review from danielchalmers March 12, 2025 03:54
@github-actions github-actions bot added breaking change This change will require consumer code updates bug Unexpected behavior or functionality not working as intended docs Updates/improvements to project documentation that do not affect core library logic enhancement Adds a new feature or enhances existing functionality (not fixing a defect) in the main library PR: needs review labels Mar 12, 2025
@versile2 versile2 removed breaking change This change will require consumer code updates docs Updates/improvements to project documentation that do not affect core library logic enhancement Adds a new feature or enhances existing functionality (not fixing a defect) in the main library labels Mar 12, 2025
@codecov
Copy link

codecov bot commented Mar 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.01%. Comparing base (828ee83) to head (a58d217).
Report is 3 commits behind head on dev.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev   #11002   +/-   ##
=======================================
  Coverage   91.01%   91.01%           
=======================================
  Files         429      429           
  Lines       13943    13946    +3     
  Branches     2695     2696    +1     
=======================================
+ Hits        12690    12693    +3     
  Misses        648      648           
  Partials      605      605           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sonarqubecloud
Copy link

@Anu6is
Copy link
Contributor

Anu6is commented Mar 12, 2025

Update title

@versile2
Copy link
Contributor Author

I'm horribly at Titles and naming in general but this is the greatest Title I've come up with yet (until it's renamed properly)

@danielchalmers danielchalmers changed the title MudSelect, Left Clicks are the Best Clicks MudSelect: Fix menu toggled on non-primary mouse clicks Mar 12, 2025
@ScarletKuro
Copy link
Member

Was this tested on touch devices?

@versile2
Copy link
Contributor Author

Was this tested on touch devices?

No, didn't think about it. I will test it tonight. Good catch.

@versile2
Copy link
Contributor Author

Was this tested on touch devices?

Can confirm works on Android and IOS and according to the web onmousedown treats touch as left click.

@ScarletKuro ScarletKuro requested a review from henon March 13, 2025 17:11
@henon henon merged commit e5f6908 into MudBlazor:dev Mar 13, 2025
6 checks passed
@henon
Copy link
Contributor

henon commented Mar 13, 2025

Thanks @versile2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Unexpected behavior or functionality not working as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MudSelect: right-click opens popover list

5 participants