MudDrawer with Anchor.Top only toggles correctly in Temporary mode
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
Looks as though it functions as expected when set to Temporary instead of Persistent
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
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.