How does the extension's detection work?

I’m developing a web application thing and Bitwarden’s browser extension keeps triggering and thinks my input fields are a username/password field. I would like to know how the detection for these fields actually work, because I would like it to stop doing that.

My input field looks like this:

<input type="text" list="namelist" autocomplete="off">
<datalist id="namelist">
    <option>A16-L31 Handheld Mortar</option>
    <option>Abandoned Tunic</option>
    ...
</datalist>

Bitwarden seems to detect the fields and it shows that icon.

And when I press down arrow to go through the popup selection, Bitwarden’s own popup overrides it.

nevermind, I figured it out: the datalist was triggering it. You should set it so each item in it has a value property instead of being inside the option.

For example I previously had

<option>Abandoned Tunic</option>

I should instead have

<option value="Abandoned Tunic" />

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.