palantir/blueprint
Popover v2 always take focus even if autoFocus is disabled
オープン
#4,792 opened on 2021/07/02
P2Package: popover2Type: bughelp wanted
Repository metrics
- Stars
- (20,263 個のスター)
- PR merge metrics
- (PR metrics pending)
説明
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.