You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some Material UI react components, like <Select />, are not displaying some specific DOM elements that render at body level.
For example, when clicking the <Select /> component to select an option from the menu, the option menu does not show up. It looks like the MUI React component is not working, but in fact the root cause is that the output is being hidden by a storybook CSS rule.
body > * {
display: none !important;
}
It looks like this rule is defined at the http://localhost:6006/iframe.html level
To Reproduce
Using Storybook v6.4.22 just create a story for the default MUI Select component example.
We’re cleaning house! Storybook has changed a lot since this issue was created and we don’t know if it’s still valid. Please open a new issue referencing this one if:
Describe the bug
Some Material UI react components, like
<Select />
, are not displaying some specific DOM elements that render at body level.For example, when clicking the
<Select />
component to select an option from the menu, the option menu does not show up. It looks like the MUI React component is not working, but in fact the root cause is that the output is being hidden by a storybook CSS rule.It looks like this rule is defined at the
http://localhost:6006/iframe.html
levelTo Reproduce
Using Storybook v6.4.22 just create a story for the default MUI Select component example.
https://mui.com/material-ui/react-select/#BasicSelect.tsx
Run storybook, open the above story and click on the Select component to open the menu.
Expected result: The menu with options should open.
Actual result: The menu does not show up.
Reproduction N/A (Got some errors related to yarn when trying to create it, maybe because my project uses npm ?)
System
Additional context
This is a Vite Project created for React and Storybook installed following the instructions here: https://github.com/storybookjs/builder-vite#getting-started-with-vite-and-storybook-on-a-new-project
The text was updated successfully, but these errors were encountered: