mui / mui/base-ui

[select] Keep focus indicator on trigger when popup is open

Open
#1,761 4 comments 1 reaction 1 assignee Claimed by @jjenzz View on GitHub
component: select has workaround
Dominant language
TypeScript
Stars
10.9k
Forks
543
Avg merge
1d 20h
Merged PRs (30d)
101

Description

# Feature request

## Summary

Currently, when popup is open, the trigger loses focus. I need to keep trigger indicating it is focused (with outline) on popup open. It doesn't have to maintain "physical" focus, just some data-attribute could be handy to style the trigger properly.

I have made some workarounds using onOpenChangeComplete, but the trigger outline still flickers, when using transitions and animations when closing popup.

https://github.com/user-attachments/assets/daca159b-898e-42b4-8d3b-d0430ee8a5b9

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.