-
-
Notifications
You must be signed in to change notification settings - Fork 380
Closed
Labels
scope: all componentsWidespread work has an impact on almost all components.Widespread work has an impact on almost all components.type: bugIt doesn't behave as expected.It doesn't behave as expected.
Description
Steps to reproduce
There are a number of components that are broken when used in non main window context, meaning in iframe, popup, shadow dom. A few quick examples:
- Dialog
| const html = document.documentElement; |
- NumberInput
base-ui/packages/mui-base/src/NumberField/ScrubAreaCursor/NumberFieldScrubAreaCursor.tsx
Line 46 in 1ab27b0
| return ReactDOM.createPortal(renderElement(), document.body); |
- Slider
| if (disabled && sliderRef.current!.contains(document.activeElement)) { |
Context
A few related issues: mui/material-ui#18701, mui/material-ui#10328.
Your environment
npx @mui/envinfo
Don't forget to mention which browser you used.
Output from `npx @mui/envinfo` goes here.
Search keywords: -
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
scope: all componentsWidespread work has an impact on almost all components.Widespread work has an impact on almost all components.type: bugIt doesn't behave as expected.It doesn't behave as expected.