-
-
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
Toolbar in Dialog Title -> Warning: You cannot call prepareStyles() on the same style object more than once. #4239
Comments
I also get this warning on LinearProgress with something like this
|
I am also getting the same error including a Paper element within a CardText
|
Also getting this for: <Dialog
title={
<AppBar
title="Legg til Rase"
showMenuIconButton={false}
style={{paddingTop: "10px", paddingBottom: "10px"}}
></AppBar>
}
modal={true}
open={this.props.open}
> ... </Dialog> |
Also getting for |
Also getting this for |
Also getting this when nesting Cards. Seems to be related to getStyles in Paper, but stopped looking. <Card>
<Card>
</Card>
</Card>
|
What's the resolve to this issue? Edit: in most case, a workaround is to wrap the component inside a
|
@ochicf and I we have come with a hack that omits this warning: https://github.com/callemall/material-ui/blob/master/src/utils/callOnce.js Use Case Hack
What is the worst that can happen? |
@yanickrochon true, in nested FlatButton in MediaCard also works 👍 |
@yanickrochon Thanks That works for me |
We have been porting the component on the v1-beta branch. We reimplemented it from the ground-up. We changed the styling solution, it's no longer an issue. |
I try to use a toolbar in the dialog title:
<Dialog title={<Toolbar></Toolbar>} />
Console output:
What am I doing wrong here?
The text was updated successfully, but these errors were encountered: