twisty / formsy-react-components

Bootstrap components for a formsy-react form.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

File picker input should return more useful value

twisty opened this issue · comments

Currently, the onChange for <Input type="file" /> sets the formsy value to be event.currentTarget.value (this is how all our other input types work).

This value maybe isn't the most useful data the element collects.

Instead, using event.currentTarget.files as the element's returned value could be more useful.

Considering changing this to be the default behaviour.

See: christianalfoni/formsy-react#126