Skip to content

Commit 2cf4b13

Browse files
authored
Merge pull request #532 from rvsia/fixMUISelectValue
fix(mui): change empty value in select from '' to null
2 parents 96bbcdb + 6442893 commit 2cf4b13

File tree

1 file changed

+1
-1
lines changed
  • packages/mui-component-mapper/src/files

1 file changed

+1
-1
lines changed

packages/mui-component-mapper/src/files/select.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const InternalSelect = ({
116116
options={options}
117117
multiple={isMulti}
118118
getOptionLabel={(option) => getOptionLabel(option, options)}
119-
value={typeof internalValue === 'undefined' ? '' : internalValue}
119+
value={typeof internalValue === 'undefined' ? null : internalValue}
120120
onChange={(_event, option) => onChange(createValue(option, isMulti))}
121121
loading={isFetching}
122122
/>

0 commit comments

Comments
 (0)