bitwarden / clients

Bitwarden client apps (web, browser extension, desktop, and cli).
https://bitwarden.com
Other
9k stars 1.18k forks source link

"Search" textfield is not focused after unlocking vault with Windows Hello Pin #4571

Open jonatino opened 1 year ago

jonatino commented 1 year ago

Steps To Reproduce

  1. Close your browser and open it
  2. Click on the bitwarden icon in your browser extension menu (make sure it's locked)
  3. Enter your windows hello pin
  4. Your vault opens but search is not focused

Expected Result

  1. Click on the bitwarden icon in your browser extension menu (make sure it's unlocked)
  2. Your vault opens and search field is focused

https://github.com/bitwarden/clients/blob/master/apps/browser/src/popup/vault/current-tab.component.html#L23

It seems this is the expected behavior by default given the autoFocus directive on the search field (and given that it works when the vault is in an unlocked state). Something about having a locked vault (maybe only when using windows hello biometics/pin to unlock) results in the search field not being focused.

Actual Result

  1. Click on the bitwarden icon in your browser extension menu (make sure it's locked)
  2. Your vault opens and search field is not focused

Screenshots or Videos

No response

Additional Context

No response

Operating System

Windows

Operating System Version

No response

Web Browser

Microsoft Edge

Browser Version

No response

Build Version

2023.1.0

Issue Tracking Info

Greenderella commented 1 year ago

Hi there,

We are unable to reproduce this issue, it has been escalated for further investigation. If you have more information that can help us, please add it below.

Thanks!

jonatino commented 1 year ago

Hi there,

We are unable to reproduce this issue, it has been escalated for further investigation. If you have more information that can help us, please add it below.

Thanks!

I will add a screen recording of the issue later today.

jonatino commented 1 year ago

@Greenderella https://imgur.com/r9r7Kfg

First I show working expected behavior with vault unlocked. When clicking Bitwarden icon it opens popup with search in focus. Then I close my browser and reopen it (vault is now locked), when I click vault icon, it opens popup and asks for Windows Hello login pin, after logging in the search field is NOT focused.