MudBlazor icon indicating copy to clipboard operation
MudBlazor copied to clipboard

MudDrawer with Anchor.Top only toggles correctly in Temporary mode

Open daveHylde opened this issue 6 months ago • 3 comments

Things to check

  • [x] I have searched the existing issues for this bug
  • [x] To rule out a caching problem I made sure the bug also happens in an incognito tab

Bug type

Component

Component name

MudDrawer

What happened?

Anchor.Top does not toggle and is visible all the time.

Expected behavior

Should act as a drawer anchored to the top

Reproduction link

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

Reproduction steps

See try mudblazor link

Relevant log output


Version (bug)

8.6.0

Version (working)

No response

What browsers are you seeing the problem on?

Firefox

On which operating systems are you experiencing the issue?

Linux

Pull Request

  • [ ] I would like to do a Pull Request

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

daveHylde avatar May 23 '25 10:05 daveHylde

Looks as though it functions as expected when set to Temporary instead of Persistent

Anu6is avatar May 23 '25 10:05 Anu6is

I think maybe is something with the DrawerContainer, because when Anchor is Top it only works correctly with the Temporary, and when it's Temporary the Drawer is added into the DrawerContainer and everything work fine, I'm making some tests

redgp0g avatar Jun 03 '25 02:06 redgp0g

For future reference, I copied the classes &.mud-drawer-pos-bottom and &mud-drawer-pos-top from &.mud-drawer-temporary to &.mud-drawer-persistent in the _drawer.scss and the toggle is working, but still not as a persistent drawer should be, obviously because the classes are the same of the temporary, but I'm still not sure of the difference in the whole logic of the Variant Temporary and Persistent.

redgp0g avatar Jun 13 '25 16:06 redgp0g