mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 06:52:33 -05:00
add default field options
This commit is contained in:
1 parent
f210f1d8bf
commit
9bd0ad70c4
2 files changed
+9
-5
No files matched your search
@@ -1320,7 +1320,11 @@ export default {
|
||||
|
||||
if (!this.fieldsDragFieldRef.value) {
|
||||
if (['select', 'multiple', 'radio'].includes(field.type)) {
|
||||
field.options = [{ value: '', uuid: v4() }]
|
||||
if (this.dragField?.options?.length) {
|
||||
field.options = this.dragField.options.map(option => ({ value: option, uuid: v4() }))
|
||||
} else {
|
||||
field.options = [{ value: '', uuid: v4() }]
|
||||
}
|
||||
}
|
||||
|
||||
if (['stamp', 'heading'].includes(field.type)) {
|
||||
|
||||
Reference in new issue
Block a user