Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

igotinfected
Copy link
Member

Description

Resolves #11409

How Has This Been Tested?

Visually:

autocomplete-lockscroll.mp4

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.

@github-actions github-actions bot added enhancement Request for adding a new feature or enhancing existing functionality (not fixing a defect) PR: needs review labels May 26, 2025
@igotinfected igotinfected changed the title MudAutocompelte: Allow changing LockScroll value (#11409) MudAutocomplete: Allow changing LockScroll value (#11409) May 26, 2025
@igotinfected igotinfected changed the title MudAutocomplete: Allow changing LockScroll value (#11409) MudAutocomplete: Allow changing LockScroll value May 26, 2025
Copy link

Copy link

codecov bot commented May 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.11%. Comparing base (aa7af8f) to head (fc5a2f3).
Report is 7 commits behind head on dev.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev   #11414   +/-   ##
=======================================
  Coverage   91.10%   91.11%           
=======================================
  Files         465      465           
  Lines       14407    14407           
  Branches     2788     2788           
=======================================
+ Hits        13126    13127    +1     
  Misses        642      642           
+ Partials      639      638    -1     

☔ 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.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Adds a LockScroll parameter to MudAutocomplete allowing consumers to enable or disable body scroll lock when the dropdown is open.

  • Introduced LockScroll parameter in MudAutocomplete.razor.cs
  • Passed LockScroll through to the underlying MudOverlay in MudAutocomplete.razor

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/MudBlazor/Components/Autocomplete/MudAutocomplete.razor.cs Added LockScroll parameter with XML documentation
src/MudBlazor/Components/Autocomplete/MudAutocomplete.razor Wired LockScroll value into the MudOverlay component
Comments suppressed due to low confidence (2)

src/MudBlazor/Components/Autocomplete/MudAutocomplete.razor.cs:502

  • Consider adding a unit or integration test to verify that setting LockScroll on MudAutocomplete correctly propagates to the underlying MudOverlay component.
public bool LockScroll { get; set; }

/// </remarks>
[Parameter]
[Category(CategoryTypes.FormComponent.ListBehavior)]
public bool LockScroll { get; set; }
Copy link
Preview

Copilot AI May 27, 2025

Choose a reason for hiding this comment

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

[nitpick] Explicitly initialize LockScroll to false in the property declaration (e.g., public bool LockScroll { get; set; } = false;) to make the default behavior clearer when skimming code.

Suggested change
public bool LockScroll { get; set; }
public bool LockScroll { get; set; } = false;

Copilot uses AI. Check for mistakes.

@danielchalmers danielchalmers merged commit 32edf83 into MudBlazor:dev May 27, 2025
7 checks passed
@igotinfected igotinfected deleted the feature/add-lockscroll-to-mudautocomplete branch May 27, 2025 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Request for adding a new feature or enhancing existing functionality (not fixing a defect)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MudAutocomplete: Allow setting LockScroll
3 participants