Open vymao opened 2 years ago
When I submit a file for upload, it changes the MUI components of unrelated components (see screenshot of Header before and after)
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;
Before: After:
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!
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:
Screenshots
Before:
After:
![image](https://user-images.githubusercontent.com/18024303/154883442-eb6b8fcd-47dd-4c36-aadc-c6b7142ab1c6.png)
Versions
Additional context