Validation fails when a dropped you drop a directory onto BFormFile
. The model seems not processed and contains nested arrays as apposed to selecting the same directory. When using the open dialog, this works fine and the model is an Array
of File
s.
This makes the validation fail as we can see this in the validator:
b-form-file
setting multiple
and directory
b-form-file
b-form-file
fails:[Vue warn]: Invalid prop: custom validator check failed for prop "value".
found in
---> <BFormFile>
b-form-file
not setting the file-name-formatter
result.Model value should be set correctly, validation should not fail, and the result of file-name-formatter
should be set.
Libraries:
Environment:
https://jsfiddle.net/k42983pd/
Additional contextI was going to use Array.prototype.flat()
to flatten the model array. But I noticed the component is in a bad state when validation fails. I also found that the presence of multiple
does not affect this problem.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4