palantir/blueprint

Popover v2 always take focus even if autoFocus is disabled

开放

#4,792 创建于 2021年7月2日

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

仓库指标

星标
 (20,263 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Environment

  • Package version(s): "@blueprintjs/core": "^3.46.0", "@blueprintjs/popover2": "^0.11.0",
  • Operating System: Mac OS, Big Sur 11.4
  • Browser name and version: Chrome Version 91.0.4472.114 (Build officiel) (x86_64)

Code Sandbox

https://codesandbox.io/s/restless-dust-b4ggf?file=/src/App.tsx

Context

I'm trying to create a component that behave close to Suggest but i can't rely on InputGroup. I try to build my own version but i'm blocked with popover v2 because focus is always take by the popover even if autoFocus props is marked as false.

Actual behavior

Input lose focus when popover open or close event if autoFocus is disabled.

Expected behavior

When autoFocus is disabled popover is not focus when open or close.

贡献者指南