Skip to content

Conversation

@ric-ros
Copy link
Contributor

@ric-ros ric-ros commented Sep 17, 2025

Fixes #557

  • MudSelectExtended.razor.cs: Refactored Disabled and ReadOnly checks to use centralized methods (GetDisabledState and GetReadOnlyState).
  • DisabledParentSelectTest.razor: Added a new test component to verify MudSelectExtended behavior when wrapped in a disabled parent.
  • SelectTest1.razor: Added a Disabled parameter to MudSelectExtended and refactored event handling methods.
  • SelectExtendedTests.cs: Added two new test cases to validate MudSelectExtended behavior when disabled or when its parent is disabled.

@Stuart88
Copy link

Sorry, whacked the approve button on this because I need this change to go in, but I don't have write access.

Didn't think it would work but I was curious!

@ric-ros
Copy link
Contributor Author

ric-ros commented Sep 26, 2025

Sorry, whacked the approve button on this because I need this change to go in, but I don't have write access.

Didn't think it would work but I was curious!

all good! Hopefully someone with write access will have a look at this PR :D

@mckaragoz
Copy link
Contributor

It's not working as intended. It still behaves like readonly, the colored underline shows and label shrinks when click on component.

@ric-ros
Copy link
Contributor Author

ric-ros commented Oct 6, 2025

It's not working as intended. It still behaves like readonly, the colored underline shows and label shrinks when click on component.

The component does not open the popover but yeah, you're right and the UI still shows the readonly behaviour.

But I need a hand with that one.
I think that the component has to many nested divs with the same class names. I've tried but now I do not have much time to look deeper into it.

Any help would be very much appreciated :D

@mckaragoz
Copy link
Contributor

MudComboBox works properly. It has same classnames like mud-select-extended. We can focus on differences between select and combobox.

And we should find which release break this behavior. Probably one of the core library release caused this behavior.

@mckaragoz
Copy link
Contributor

This PR fixes this issue partially. Im merging it now, thanks for the effort. But we should investigate the design issue.

@mckaragoz mckaragoz merged commit 6e6a8ed into CodeBeamOrg:dev Oct 12, 2025
1 check passed
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.

MudSelectExtended opens menu even if parent is readonly or disabled

3 participants