Skip to content

Commit 4ee0778

Browse files
falsy autocomplete issue fixed
1 parent 1922fd0 commit 4ee0778

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/mui-material/src/Autocomplete/Autocomplete.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ const Autocomplete = React.forwardRef(function Autocomplete(inProps, ref) {
590590

591591
if (renderTags && multiple && value.length > 0) {
592592
startAdornment = renderTags(value, getCustomizedItemProps, ownerState);
593-
} else if (renderValue && value) {
593+
} else if (renderValue && value !== null && value !== undefined) {
594594
startAdornment = renderValue(value, getCustomizedItemProps, ownerState);
595595
} else if (multiple && value.length > 0) {
596596
startAdornment = value.map((option, index) => {

0 commit comments

Comments
 (0)