muicss/mui

Problem with stealing focus back to the select box

開放

#128 建立於 2016年8月9日

 (4 則留言) (0 個反應) (0 位負責人)JavaScript (441 個分叉)batch import
bughelp wantedpriority: high

倉庫指標

星標
 (4,524 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南