Skip to content

Dragged file input still shows required alert #3673

Closed
@hkchakladar

Description

@hkchakladar

Describe the bug

When required is used in b-form-file and a file is dragged, it still shows select a file alert on submit.

It works fine with selecting file from the popup file system.

Steps to reproduce the bug

  1. Go to https://codesandbox.io/s/form-required-drag-0uccq
  2. Drag a file in the Choose file form.
  3. Submit form, it shows alert.
  4. Now click on Choose a file and select a file from the selector.
  5. Submit form, it works.

Expected behavior

  1. Go to https://codesandbox.io/s/form-required-drag-0uccq
  2. Drag a file in the Choose file form OR click on Choose a file and select a file from the selector.
  3. Submit form. It should work for both methods.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions