Skip to content

Commit 6442893

Browse files
committed
fix(mui): change empty value from '' to null
- the autocomplete considers '' as a value, so the select is by default 'filled'
1 parent 96bbcdb commit 6442893

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)