palantir/blueprint

[Select] Focus issue when changing from one select to another directly

Open

#5,129 建立於 2022年2月11日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)TypeScript (20,263 star) (2,167 fork)batch import
P2Package: selectType: bughelp wanted

描述

Environment

  • Package version(s):
    @blueprintjs/core 3.53.0 @blueprintjs/select 3.18.12
  • Operating System: MacOS Monterey 12.1
  • Browser name and version: Google Chrome 98.0.4758.80

Code Sandbox

Sandbox

Steps to reproduce

  1. Create 2 Select from @blueprintjs/select with button as target child
  2. Select a first Select
  3. Click on the second target button directly (don't click outside first then on button this behavious is ok, it happens only when you directly click on a target)
  4. Play with arrow to change active Item

Actual behavior

https://user-images.githubusercontent.com/9548473/153581747-8394dc16-d10a-4c3d-9ca0-f20e13711539.mov

Expected behavior

Correctly focus the second target button.

貢獻者指南