material-ui
material-ui copied to clipboard
[Autocomplete] prevent highlight index from resetting when options are added
Generated by :no_entry_sign: dangerJS against 63e8baab13e286caec2ad9d012bedfde73f8bcbc
Any movement on this? I'd be happy to try to help!
Maybe instead of always resetting or never resetting, it could reset only if the previously highlighted option no longer exists. If it still exists, it can remain highlighted. If it no longer exists, then we reset.
I would also be very happy if this got prioritized, let me know if I can help somehow!
@justintoman, @jimmycallin, feel free to give it a stab (just decide between the two of you who'll do it).
Maybe instead of always resetting or never resetting, it could reset only if the previously highlighted option no longer exists. If it still exists, it can remain highlighted. If it no longer exists, then we reset.
I think this should be the way to go. Let's implement this and see how it behaves live.
Since there is no activity in this PR, I am closing it in favour of #35735.