Skip to content

Commit 7e583e4

Browse files
committed
Allow free text input if data is missing for select boxes
1 parent 4293e9e commit 7e583e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/datatypes/SelectBox.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ export default {
212212
return (this.type === 'file-paths');
213213
},
214214
taggable() {
215-
return (this.type === 'year');
215+
let freeInputIfEmpty = ['band-name', 'collection-id', 'job-id', 'input-format', 'output-format'];
216+
return (this.type === 'year' || (this.selectOptions.length === 0 && freeInputIfEmpty.includes(this.type)));
216217
},
217218
preselect() {
218219
if (this.multiple) {

0 commit comments

Comments
 (0)