Closed
Description
Steps to reproduce
Steps:
- Open this link to live example: (required)
https://stackblitz.com/edit/ngv7uzgm?file=src%2FDemo.tsx - Choose Option A
- Value will not be rendered
this should be caused by this condition renderValue && value
in
Current behavior
Autocomplete does not get called for falsy values (like 0)
Expected behavior
renderValue should only be skipped for empty arrays, null or undefined as a value
Context
Select a Enum value with an autocomplete
Your environment
npx @mui/envinfo
Don't forget to mention which browser you used.
Output from `npx @mui/envinfo` goes here.
Search keywords: Autocomplete, falsy, renderValue