palantir/blueprint

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

开放

#5,129 创建于 2022年2月11日

 (0 条评论) (0 个反应) (0 位负责人)TypeScript (2,167 个派生)batch import
P2Package: selectType: bughelp wanted

仓库指标

星标
 (20,263 个星标)
PR 合并指标
 (平均合并 43天 10小时) (30 天内合并 27 个 PR)

描述

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.

贡献者指南