MudBlazor / MudBlazor

Blazor Component Library based on Material design with an emphasis on ease of use. Mainly written in C# with Javascript kept to a bare minimum it empowers .NET developers to easily debug it if needed.
http://mudblazor.com
MIT License
7.21k stars 1.18k forks source link

MudAutocomplete and MudSelect do not close when clicking another dropdown #8816

Open ArielDePrada opened 2 weeks ago

ArielDePrada commented 2 weeks ago

Bug type

Component

Component name

MudAutocomplete

What happened?

When there is a MudAutocomplete component in a DataGrid column that has StickyLeft="true" then another drop down in the same column is clicked the select list does not close.

This behavior also exists with MudSelect.

Expected behavior

The dropdown should close when clicking outside of the component.

Reproduction link

https://try.mudblazor.com/snippet/mkmIkIQzgAngIvvD

Reproduction steps

  1. Create MudDataGrid with a MudAutocomplete component in the first column.
  2. Set StickyLeft to true on the first column.
  3. Click on the MudAutocomplete field in the first cell
  4. Notice the drop down list opens.
  5. Click on a different MudAutocomplete field in a different cell in the same column.
  6. Notice both drop down lists are open. ...

Relevant log output

No response

Version (bug)

6.19.1

Version (working)

No response

What browsers are you seeing the problem on?

Chrome

On which operating systems are you experiencing the issue?

Windows

Pull Request

Code of Conduct

danielchalmers commented 2 weeks ago

Could you post a video showing this?

ArielDePrada commented 2 weeks ago

https://github.com/MudBlazor/MudBlazor/assets/166857407/b6c788ac-07cc-4b21-92ac-7b26ce5946ff

@danielchalmers Here is a short video of the behavior.

danielchalmers commented 2 weeks ago

Thanks. That might be a z-index issue

ArielDePrada commented 1 week ago

@danielchalmers I was thinking the same thing. Do you know of any work arounds?

danielchalmers commented 1 week ago

@ArielDePrada Nothing off the top of my head but take a look at some upvoted issues that are open, I think they should give some pointers.

Side note: the label clipping through the bottom isn't intended is it? image