Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Popover] Should default to use anchorEl's parent body #10049

Merged
merged 4 commits into from Jan 26, 2018

Conversation

ianschmitz
Copy link
Contributor

Closes #10038.

The popover now defaults to using the parent body element of the anchorEl prop if a container prop isn't provided.

@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work component: Popover The React component. labels Jan 26, 2018
* A node, component instance, or function that returns either.
* The `container` will passed to the Modal component.
*/
container: PropTypes.oneOfType([PropTypes.object, PropTypes.func]),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@oliviertassinari Just wanted to verify if this is the correct way to fix the no validation linting error message when we are intercepting props being passed through to child components.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed it gets added to the docs API page which doesn't seem right :(

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍 . Run yarn docs:api to update the docs.

@oliviertassinari oliviertassinari self-assigned this Jan 26, 2018
@oliviertassinari oliviertassinari changed the title Popover should default to use anchorEl's parent body [Popover] Should default to use anchorEl's parent body Jan 26, 2018
@oliviertassinari oliviertassinari merged commit a047eb8 into mui:v1-beta Jan 26, 2018
@oliviertassinari
Copy link
Member

@ianschmitz Thank you!

@ianschmitz ianschmitz deleted the popover-anchorel-container branch January 29, 2018 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: Popover The React component.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants