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

Accepted files starts out grey then goes to red in dialog #312

Open
megbouv opened this issue Jun 28, 2021 · 0 comments
Open

Accepted files starts out grey then goes to red in dialog #312

megbouv opened this issue Jun 28, 2021 · 0 comments

Comments

@megbouv
Copy link

megbouv commented Jun 28, 2021

Bug Report

Describe the bug

On drag and drop initially the dropzone area is grey but then turns to red, but the files are accepted.

Steps to reproduce

Steps to reproduce the behavior:

  1. Create dropzone area in a dialog within React Hook Form Controller.
  2. set acceptedFiles to 'application/x-pem-file',
    'application/x-x509-ca-cert',
    'application/x-x509-user-cert'
  3. Attempt to drag and drop a .pem file. Initially it is showing as accepted (grey) but then turns to rejected (red) but it still allows you to submit.

Expected behavior

A .pem file should be accepted and should not turn red.

### Screenshots

Screen Shot 2021-06-28 at 3 48 03 PM

Versions

  • mac OS 10.15.6
  • Chrome
  • @material-ui/core version: 4.11.0
  • material-ui-dropzone version: 3.5.0

Additional context

This only happens within a material ui dialog in chrome. The issue does not exists in Firefox or outside of the dialog.

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

1 participant