[base-ui][ClickAwayListener] Trouble with importing it #39142
Labels
component: ClickAwayListener
The React component
package: base-ui
Specific to @mui/base
status: expected behavior
Does not imply the behavior is intended. Just that we know about it and can't work around it
Duplicates
Related page
https://mui.com/base-ui/react-click-away-listener/components-api/
Kind of issue
Other
Issue description
The API page for the ClickAwayListener uses curly braces for the path import example as well as the top-level import example.
Currently:
import { ClickAwayListener } from '@mui/base/ClickAwayListener'; // or import { ClickAwayListener } from '@mui/base';
What I believe is intended:
import ClickAwayListener from '@mui/base/ClickAwayListener'; // or import { ClickAwayListener } from '@mui/base';
Context 🔦
Incorrect sample / typo
The text was updated successfully, but these errors were encountered: