2

Based on this LastPass guidance I've tried data-lpignore and data-lpignore="true", per this markup:

  <lightning-input
        if:true={colmod.showme}
        required={colmod.required}
        type={colmod.type}                    
        data-api={colmod.fieldName}
        label={colmod.label}
        readonly={colmod.readonlyeditor}
        onchange={onInputChange}
        variant="label-inline"
        data-lpignore="true"
    ></lightning-input>

But I still get results that look like this:

example screenshot of lightnin-input form fields with LastPass icon

FWIW - I don't see the data- items in the rendered DOM, so I suppose it's all in the shadows - anyone else find a successful solution to this? Not interested in requiring users to modify/disable LastPass yet.

4 Answers 4

2

After re-reading the LastPass guidance, I realized I had not done this:

In your LastPass browser extension preferences (Advanced settings), enable the Respect AutoComplete=off setting, which will allow websites to disable the autofill feature.

Once I did, it started working as advertised. Yes, right after I posted this question

1
  • This is what I needed, thank you! Even better in my case was to also enable the setting: "Don't overwrite fields that are already filled" In General > Form Fill
    – Matthew
    Nov 1, 2023 at 19:36
0

Otherwise, if you want to hide it on specific form of specific input, you can use CSS. Something like :

 svg[data-lastpass-icon=true]{
    visibility:none;
 }
0

This CSS snippet helped me where autocomplete and data-lpignore did not work, out of box:

div[data-lastpass-icon-root] {
    display: none !important;
}
-2

You should find other to replace lasspass, because It may be make wrong data be cause autofill in any Form. This problem still along time, but lasspass not fix it!

1
  • 1
    Welcome to SFSE! Please take the tour and read How to Answer. This site thrives on details. While a "frame challenge" like this can make for a good answer, you generally need to go into extra detail about why the current solution isn't appropriate, present a better choice, and explain why this other choice is appropriate. I don't feel that this answer rises to meet those criteria.
    – Derek F
    Apr 25, 2023 at 11:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .