Having some trouble with the Material UI
Drawer
component. Whenever I try to display it on my webpage, it automatically focuses on the inner div
, adding a shadow or border if the focus is anywhere else. Does anyone know why this shadow appears and how to remove it? See screenshot below for reference - notice the blue edge at the bottom (this occurs all around if the element is resized).
Interestingly, clicking on content within the Drawer
such as a List
element makes the shadow disappear. I suspect it has something to do with the component behaving like a modal?
<Drawer PaperProps={{ className: classes.floatingMenu }} anchor='top' open onClose={() => {}}>
<div className={classes.dummy}>
</div>
</Drawer>
Note: The floatingMenu
class simply adds a 55px margin at the top (equal to the height of the AppBar
), no other styles are applied.