-
Notifications
You must be signed in to change notification settings - Fork 54
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
Build version not compatible with Material UI #109
Comments
I am checking it, can u please add code example how do you try to use it? |
Thank you for your reply. render() {
return (
<div>
<Dialog
open={this.props.open}
aria-labelledby="form-dialog-title"
className={this.props.className}
fullWidth={true}
maxWidth={this.props.maxWidth}
>
<DialogTitle id="form-dialog-title">{this.props.dialogTitle}</DialogTitle>
<DialogContent>
{this.props.dialogText ? <DialogContentText>
{this.props.dialogText}
</DialogContentText> : null}
{this.renderFields()}
{this.props.multiSelect && <MultiSelect
wrapperClassName='modalBoxMultipleSelect'
items={this.props.multiSelectItems}
selectedItems={this.state.selectedItems}
onChange={items => this.handleChangeSelectItem(items)}
/>}
</DialogContent>
<DialogActions>
<Button onClick={this.handleClose} color="primary">
Cancel
</Button>
<Button onClick={() => this.saveChanges()} color="primary">
{this.props.submitButtonText}
</Button>
</DialogActions>
</Dialog>
</div>
)
} I've seen that your project uses Material UI also, and from what I've read there might be css conflicts if there's two instances of material UI on the same project. I will try using Material UI as a peer dependency. |
update me please. |
Using Material Ui as a peer dependency didn't work. import JssProvider from 'react-jss/lib/JssProvider';
export default () => (
<JssProvider generateClassName={generateClassName}>
<App />
</JssProvider>
); I think that we should consider wrapping your project in a JssProvider, maybe this way won't be any conflicts in the future with other projects using Material UI. |
Thank you @Cozloschi for bringing this to our attention. You are also more then welcomed to provide a solution beforehand, any contribution would be greatly appreciated. |
Same issue here! would love to have a fix soon 👍 |
Sorry about the delay in handling this. |
is there any news with this issue? I'm literally unable to use this component. |
any updated? |
we've been waiting for the bug fix :(. |
Hi, hopefully this PR will provide the fix. |
Please give v1.0.67 and let us know how it goes. Thanks! |
Hi, this issue is still going
|
@orShapira what material ui version are you using? |
@liorheber |
Well the dependency for our component is currently material-ui/[email protected] so there's a good chance this is the cause. |
@orShapira could you please supply a live code example, |
Hi, I am using material ui 3.9.2 version. but multi-select library uses 1.0 version. it's giving me a lot of errors. is there any solution for this?? |
@samuelrego thanks for feedback, |
I've tried with Edit: I've used a JSSProvider instead (custom |
Same problem here ! Any solution in production mode ? |
problem still exists
|
@ekinertac I am facing the same problem on the same versions. Did you find any solution? |
Expected Behavior
Hello, I am using your multi select component in a project which uses Material UI. On the development server everything looks like expected:
![screen shot 2018-10-25 at 11 14 10](https://user-images.githubusercontent.com/8299041/47485645-351a6500-d847-11e8-8413-870cdaf5bd00.png)
![screen shot 2018-10-25 at 11 13 55](https://user-images.githubusercontent.com/8299041/47485759-7ca0f100-d847-11e8-9409-30dc32c84ec5.png)
When I am using production build, everything looks the same except the component which uses your component:
Do you have any ideea why this happens? Thank you in advance.
Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered: