Checklist(Check off all the items before submitting)
[x] Build process is done without errors and all tests pass in /lib directory.
[x] Self-reviewed the code prior to submitting.
[x] Meets accessibility standards.
[x] Added/updated documentation to /website as needed.
[x] Added/updated tests as needed.
Purpose
Improve file input's documentation and behavior.
Description
Improved callbackFile description in props table.
Removed name from the input file to avoid that inconsistent data is received in submit inside a form.
Added type="button" to file item's delete button, since by default button type is submit. This would cause a problem when the file input is inside a form.
Changes basicUsage example to print files stateful variable instead of input file' files. Input file is uncontrolled and files are read only, so they do not contain files updated.
Added file input inside a form example.
Remove file input inside a form test, since we are not controlling what is arriving in submit event.
Checklist (Check off all the items before submitting)
/lib
directory./website
as needed.Purpose Improve file input's documentation and behavior.
Description
callbackFile
description in props table.name
from the input file to avoid that inconsistent data is received in submit inside a form.type="button"
to file item's delete button, since by default button type issubmit
. This would cause a problem when the file input is inside a form.basicUsage
example to printfiles
stateful variable instead of input file'files
. Input file is uncontrolled and files are read only, so they do not contain files updated.Closes #1492