LaunchPadLab / lp-components

Our Components
http://lp-components.herokuapp.com
MIT License
5 stars 1 forks source link

Issue #347 : Add remove button to default file input previews #526

Closed nicoledow closed 2 years ago

nicoledow commented 2 years ago

Description

V6 adds support for multiple files in the FileInput component, with each file having a remove button. This PR is meant to provide that same remove button when the multiple prop is false. Clicking the "x" sets the value back to an empty string.

Author Checklist

chawes13 commented 2 years ago

@nicoledow Thanks! Could you update the documentation via the JS doc comments on line 37 and 39 in file-input.js? The docs.md file should be updated automatically via pre-commit. If for some reason that doesn't work, you can run yarn docs manually. Image 2022-01-20 at 12 05 15 PM

nicoledow commented 2 years ago

@chawes13 docs updated ✅