palantir/blueprint

Overlay enforcing focus not returning focus to the last focused element in the overlay

Open

#5857 aperta il 20 gen 2023

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)TypeScript (2167 fork)batch import
P3Package: coreType: bughelp wanted

Metriche repository

Star
 (20.263 star)
Metriche merge PR
 (Merge medio 43g 10h) (27 PR mergiate in 30 g)

Descrizione

Environment

  • Package version(s): 8.5.5
  • Operating System: macOS Ventura 13.1 (22C65)
  • Browser name and version: Version 109.0.5414.87 (Official Build) (arm64)

Code Sandbox

Link to a minimal repro (fork this code sandbox): https://codesandbox.io/s/exciting-greider-3u7620

Steps to reproduce

  1. Start typing in the overlay's input box.
  2. Wait 2 seconds.
  3. Notice how the focus is not returned to the input box but instead to the overlay's root element.

Expected behavior

I'd expect the focus to be returned to the last focused element in the overlay. Otherwise, it's particularly problematic for omnibars.

Guida contributor