Open kirillmakhonin opened 5 months ago
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 I've tried the fix https://github.com/formio/formio.js/pull/5509 and it looks like the issue in the component itself due to difference in selector values vs values for selectors
@kirillmakhonin my apologies, @formio/react@5.3.1-dev.AvA08V.6 was an internal developer version that somehow slipped through to become latest
. I've corrected the error.
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/react@5.3.0 and formiojs@4.18.0) 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/react@5.3.0).
Hello, @brendanbond I'm currently using the "@formio/angular": "^7.5.0-rc.2" "@formio/js": "^5.0.0-rc.42" versions and I'm experiencing a problem with the "File" component. I noticed that a merge request has been opened on GitHub regarding this issue (https://github.com/formio/formio.js/pull/5509). I'd like to know what progress has been made in resolving this issue. Could you give me an estimate of how long it will take to fix this bug and release a new version? Thank you in advance for your reply.
@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
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![image](https://github.com/formio/formio.js/assets/3201565/2bceded7-2730-4fc5-a1a7-93b4f1df36f9)
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 object