muicss/mui

Problem with stealing focus back to the select box

Open

#128 建立於 2016年8月9日

在 GitHub 查看
 (4 留言) (0 反應) (0 負責人)JavaScript (4,524 star) (441 fork)batch import
bughelp wantedpriority: high

描述

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.

貢獻者指南