-
Notifications
You must be signed in to change notification settings - Fork 1.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
Unable to select Storage for File Component #5508
Comments
Hey @kirillmakhonin thanks for reporting this. Are we certain that the issue is in the file component itself? I suspect that this is a regression in the specific validation around select components (if only because the file component's form definition hasn't changed in a long time) - we'll take a look at this ASAP |
Hello @brendanbond |
@kirillmakhonin my apologies, @formio/[email protected] was an internal developer version that somehow slipped through to become Also, you're using formiojs v 4.x, which means you don't really need some of those other peer dependencies, namely @formio/core and @formio/js, which comprise the 5.x renderer. Can you try reproducing in the latest stable versions (so @formio/[email protected] and [email protected]) and let us know if you run into this issue? If you're into the idea of trying a release candidate, don't use the formiojs dependency and use the latest rc versions of @formio/js and @formio/core (which should go just fine with @formio/[email protected]). |
Hello, @brendanbond |
@maxenceyrowah @kirillmakhonin I am unable to reproduce this using a trivial minimal builder example. Can one of you post a CodeSandbox or something similar (JSFiddle, etc.) that has a reproduction? Thanks |
Thank you for your contribution. As this issue has been inactive for over 90 days, I will close it for now. If you wish to reopen the issue, please respond and we can resume the triage process. |
Describe the bug
Unable to use "File Component" field due to error with validation of "Storage" field.
Version/Branch
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No error and storage is selected successfully
Screenshots
Additional context
Source files:
Suspection
I suspect the problem is in file https://github.com/formio/formio.js/blob/master/src/components/file/editForm/File.edit.file.js#L5-L23
It looks like if
valueProperty: 'value',
is used, then_.map
should return onlykey
and not an objectThe text was updated successfully, but these errors were encountered: