muicss/mui

Problem with stealing focus back to the select box

Open

#128 aperta il 9 ago 2016

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)JavaScript (441 fork)batch import
bughelp wantedpriority: high

Metriche repository

Star
 (4524 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Problem reproduction: Go to the forms example and open the menu of a select control. Than click on the next input field below. The focus switches to the input field and later back to the select box.

In both the react- and the js-variant of mui-select you can find a statemen selectEl.focus(); It should refocus the select element after closing the corresponding menu. But if you close the menu by clicking into another control, the focus switches from the other control back to the select element. So the statement above should not be called if the menu is closed by not selecting a menu item.

Guida contributor