Popper faked reference object props validation fails #15922
Labels
bug 🐛
Something doesn't work
component: Popper
The React component. See <Popup> for the latest version.
good first issue
Great for first contributions. Enable to learn the contribution process.
Expected Behavior 🤔
anchorEl prop to validate when a faked reference object is passed.
Current Behavior 😯
Validation fails.
"Warning: Failed prop type: Material-UI: the
anchorEl
prop provided to the component is invalid.It should be an Element instance but it's
[object Object]
instead."Steps to Reproduce 🕹
Check the documentation example: https://material-ui.com/components/popper/#faked-reference-object
The codesandbox in the documentation reproduces the failure https://codesandbox.io/s/hp8d5
Context 🔦
Your Environment 🌎
The text was updated successfully, but these errors were encountered: