-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[DatePicker] data-picker-inline Popover instead of Paper #2557
Conversation
Could you add The Popover is not correctly positioned when opened. |
<div style={styles.subContainer}> | ||
<Paper {...other}> | ||
<div style={styles.subContainer} ref="anchor"> | ||
<Popover open={open} anchorEl={this.refs.anchor} {...other}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you put the {...other}
at the beginning? I think that it's better in general, you don't want specific properties to be overridden.
Only thing I can think of is that the ref won't exist on the first render, so if that happens to be the only render, then you're effectively passing null to the |
That's true. However, when the popover is opened and rerendered, the ref is valid, still the position is wrong. |
b6bc2b7
to
91cf8e1
Compare
@oliviertassinari I've moved In regards to I've noticed that |
you'll need it, as if the state is reset externally then open prop could be wrong. Specifically, the inline date picker should handle |
#2120 (comment)