Skip to content

Commit 009083e

Browse files
$'syncing commit from monorepo. PR: 327, Title: Fixed an issue where the Select component value would get reset to \'\' instead of the emptyValue when choices is used.' (#6206)
Co-authored-by: lane-formio <[email protected]>
1 parent ac1eaf7 commit 009083e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/select/Select.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1371,7 +1371,7 @@ export default class SelectComponent extends ListComponent {
13711371
}
13721372
// Choices will return undefined if nothing is selected. We really want '' to be empty.
13731373
if (value === undefined || value === null) {
1374-
value = '';
1374+
value = this.emptyValue;
13751375
}
13761376
return value;
13771377
}

0 commit comments

Comments
 (0)