material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

[autocomplete] Fix ArrowLeft crash when value is not set with single-value rendering

Open rithik56 opened this issue 2 months ago • 3 comments

Fixes #47212

fix(Autocomplete): prevent error when focusing non-existent element

Add optional chaining when focusing elements in useAutocomplete to handle cases where the element doesn't exist. Add tests to verify the behaviour

rithik56 avatar Nov 08 '25 09:11 rithik56

Netlify deploy preview

https://deploy-preview-47214--material-ui.netlify.app/

Bundle size report

Bundle Parsed size Gzip size
@mui/material 🔺+9B(0.00%) 🔺+3B(0.00%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/system 0B(0.00%) 0B(0.00%)
@mui/utils 0B(0.00%) 0B(0.00%)

Details of bundle changes

Generated by :no_entry_sign: dangerJS against 499839a36d661b7fca7b2a8bd824b2e3b49f3714

mui-bot avatar Nov 08 '25 09:11 mui-bot

@rithik56 Can you try to push with an empty commit? I am not sure why the two required jobs e2e-website and deploy/netlify aren't running in the CI. Same is the case in #47215.

ZeeshanTamboli avatar Nov 10 '25 10:11 ZeeshanTamboli

Yes @ZeeshanTamboli. Will do this

rithik56 avatar Nov 10 '25 13:11 rithik56

@ZeeshanTamboli I tried pushing the empty commit but the CI is not getting triggered

rithik56 avatar Nov 10 '25 17:11 rithik56

Hmm, I tried again but those two particular CI jobs aren't running.

ZeeshanTamboli avatar Nov 11 '25 03:11 ZeeshanTamboli