Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Material UI select jumps to the top of the page

I am using material ui select component. When the page is embedded as part of the iframe, I am seeing a jump to the top of the page whenever I interact with the select component. I've tried adding getContentAnchorEl: null, as part of the MenuProps but it does not work

like image 863
Zlatan Sadibasic Avatar asked Nov 29 '25 02:11

Zlatan Sadibasic


1 Answers

Try this:

<Select 
MenuProps={{ autoFocus: false,
             disableAutoFocusItem: true,
             disableEnforceFocus: true,
             disableAutoFocus: true
           }} ...
like image 193
Jheysson Urbano Avatar answered Dec 01 '25 16:12

Jheysson Urbano



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!