-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Cannot specify File Input multiple attribute #1386
Comments
There is a whitelist array of HTML input props in the Input component. These props are spread in the HTML input component within the div wrapper. The multiple prop simply needs to be added to that array. |
Maybe there should be a way of adding any additional props that makes it flexible for any future HTML5 attributes that come along? |
Given there are a small finite number of these props and they change very infrequently, I think it makes sense to whitelist them. A workaround is to use the http://react.semantic-ui.com/elements/input
<Input input={{ multiple: true }} />
// or
<Input input={<input multiple />} /> You can pass a type, props object, or an element there ^ 👍 |
Thanks for the example. I did not know that you could use the Input like this. |
Indeed, the crux of this library is the power of our shorthand props. They have yet to be documented #561 😄 |
Released in |
I tried all different ways but could not specify the following input for selecting multiple files. Single file selection works fine. How to specify the multiple property?
<input type="file" multiple />
The text was updated successfully, but these errors were encountered: