<Form /> has runtime errors when `noDefault` is `true`
@ZenMasterJacob20011 đang làm issue này rồi.
Từ ngày 15/5/2024.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Formio version @formio/[email protected]
React version: 18.2.0
If noDefault in options is true, an error occurs after choose a file for a file component.
File.js:764 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'some')
at _callee$ (File.js:764:1)
at tryCatch (File.js:99:1)
at Generator.<anonymous> (File.js:99:1)
at Generator.next (File.js:99:1)
at asyncGeneratorStep (File.js:100:1)
at _next (File.js:101:1)
at File.js:101:1
at new Promise (<anonymous>)
at File.js:101:1
at File.js:926:1
_callee$ | @ | File.js:764
-- | -- | --
| tryCatch | @ | File.js:99
| (anonymous) | @ | File.js:99
| (anonymous) | @ | File.js:99
| asyncGeneratorStep | @ | File.js:100
| _next | @ | File.js:101
| (anonymous) | @ | File.js:101
| (anonymous) | @ | File.js:101
| (anonymous) | @ | File.js:926
| upload | @ | File.js:717
| (anonymous) | @ | File.js:465
| Promise.then (async) | |
| (anonymous) | @ | File.js:464
<Form
form={form_json}
onChange={onFormChange}
submission={submission_json}
options={{
noDefaults: true
}}
/>
form_json
{
"components": [
{
"label": "Upload",
"labelPosition": "top",
"description": "",
"tooltip": "",
"customClass": "",
"tabindex": "",
"hidden": false,
"hideLabel": false,
"autofocus": false,
"disabled": false,
"tableView": false,
"modalEdit": false,
"storage": "base64",
"dir": "",
"fileNameTemplate": "",
"image": false,
"uploadOnly": false,
"webcam": false,
"fileTypes": [
{
"label": "",
"value": ""
}
],
"filePattern": "*.heic,*.gif,*.jpg,*.jpeg,*.png,*.bmp,*.pdf,*.zip,*.ppt,*.pptx,*.doc,*.docx,*.xls,*.xlsx",
"fileMinSize": "0KB",
"fileMaxSize": "10MB",
"multiple": false,
"persistent": true,
"protected": false,
"dbIndex": false,
"encrypted": false,
"redrawOn": "",
"clearOnHide": true,
"customDefaultValue": "",
"calculateValue": "",
"calculateServer": false,
"allowCalculateOverride": false,
"validate": {
"required": false,
"customMessage": "",
"custom": "",
"customPrivate": false,
"json": "",
"strictDateValidation": false,
"multiple": false,
"unique": false
},
"errorLabel": "",
"errors": "",
"key": "file",
"tags": [],
"properties": [],
"conditional": {
"show": null,
"when": null,
"eq": "",
"json": ""
},
"customConditional": "",
"logic": [],
"attributes": [],
"overlay": {
"style": "",
"page": "",
"left": "",
"top": "",
"width": "",
"height": ""
},
"type": "file",
"imageSize": "200",
"input": true,
"placeholder": "",
"prefix": "",
"suffix": "",
"defaultValue": null,
"unique": false,
"refreshOn": "",
"dataGridLabel": false,
"widget": null,
"validateOn": "change",
"showCharCount": false,
"showWordCount": false,
"allowMultipleMasks": false,
"addons": [],
"privateDownload": false,
"id": "ecedeus"
}
]
}
- Ngôn ngữ chính
- TypeScript
- Star
- 371
- Fork
- 309
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của formio/react
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 64/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
-
onChange `modified` property remains false when file component is updatedCó thể làm lại được @ZenMasterJacob20011 đã nhận 293 ngày trước và không có pull request nào đang mở. Đang mở
-
FormBuilder onChange callback not triggered when options prop is providedCó thể làm lại được @Victoriya25 đã nhận 335 ngày trước và không có pull request nào đang mở. Đang mở
-
FormBuilder with OnChange broke textareaCó thể làm lại được @lane-formio đã nhận 307 ngày trước và không có pull request nào đang mở. Đang mở
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
vercel-labs/ui#809 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bot:ai-assisted component:platform-js status:untriaged
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 74/100
midnightntwrk/platform-js#38 ·
-
[bug] Second false positive on high-cost plugin alert: detection only compares patch entry id, community plugin dsh-auto | [bug] 高成本插件告警第二次误报:检测只比对 patch 条目 id,社区插件 dsh-auto-review 被认成 @deepseek-ai/dsh-experimental-auto-reviewCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ranxianglei/billion-context#7068 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
vendor: bump whisper.cpp past 6a8addd — the current pin aborts the app on a failed Metal initĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
mybigday/whisper.rn#348 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
six-group/six-webcomponents#600 ·