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

File selection changes MUI styles of unrelated components #346

Open
vymao opened this issue Feb 21, 2022 · 1 comment
Open

File selection changes MUI styles of unrelated components #346

vymao opened this issue Feb 21, 2022 · 1 comment

Comments

@vymao
Copy link

vymao commented Feb 21, 2022

Bug Report

Describe the bug

When I submit a file for upload, it changes the MUI components of unrelated components (see screenshot of Header before and after)

Steps to reproduce

Code:

import * as React from 'react';

import Header from "CommonElements/Navigation/Creative/Header";
import Dropzone from "CommonElements/Navigation/Creative/Upload-Dropzone";
import { DropzoneArea } from 'material-ui-dropzone';

function About() {
  return (
    <div className="home">
      <Header />
      <DropzoneArea
  onChange={(files) => console.log('Files:', files)}
/>
    </div>
  );
}

export default About;

### Screenshots

Before:
image
After:
image

Versions

  • OS: iOS
  • Browser: Chrome
  • Latest version of MUI

Additional context

@AnnoDomine
Copy link

Got the same problem.
If you use MUI Version 5 use the updated repo https://github.com/Deckstar/mui-file-dropzone
After changed to this the bug get fixed. Dont 4get to change youre import!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants