Before I fall down the rabbit hole, has anyone found a good way to detect password manager autofill in the browser? :auto-fill CSS works great if the browser fills it but 1Pass/ Bitwarden gives next to no clues.

Update: I made a pen - https://codepen.io/editor/steveworkman/pen/019cd424-705c-7af9-9afc-325ad590a302

I turned the detector into a custom element that can be wrapped around <input> and <select> elements

It send an "autofill" event whether it is filled by the browser or by 1Pass. Give it a go with your password manager of choice

Autofill

A code demo by Steve Workman created on CodePen

CodePen
@steveworkman what's you use case?
@patrick_h_lauke I have a typeahead custom element for country selection that requires the user to select from the list. If autofill does it it looks like it has worked to the user but hasn't actually worked and will throw a "please select from the list" error when the form is submitted