KarimMokhtar / react-drag-drop-files

Light and simple Reactjs drag and drop files library to use with very flexible options to change, so you put whatever the design you want for your drop-area. Users can drag and drop or even select the file anywhere in the window.
MIT License
245 stars 86 forks source link

Add an id attribute to the file input element #131

Open vladfreishmidt opened 10 months ago

vladfreishmidt commented 10 months ago

Summary

This Pull Request addresses the following issue:

Fix of the browser error: "Incorrect use of <label for=FORM_ELEMENT>: The label's "for" attribute didn't match any element ID, which could prevent the browser from autofilling the form and affect accessibility tools".

Key Changes

An "id" attribute has been added to the file input element in the FileUploader component to resolve the issue.

Check List