Git Product home page Git Product logo

Comments (6)

amenk avatar amenk commented on July 2, 2024

Unfortunately I believe it is super hard to make browser to not autocomplete inputs. We might randomize the form field name to avoid this?

from mugshot.

amenk avatar amenk commented on July 2, 2024

autocomplete="new-password" on the name field seems to help

from mugshot.

cccraig avatar cccraig commented on July 2, 2024

@amenk I'm actually not able to reproduce this on my computer but I added a fix that, at a minimum, doesn't seem to break anything. The place where you enter the persons name is just an input box so I added a type of "text" and set the autocomplete field to false. That should prevent the browser from auto-completing the field in those text boxes.

from mugshot.

cccraig avatar cccraig commented on July 2, 2024

Ah actually it looks like there was a "bug that's a feature" that my update broke. When there is only one name in the list of matches you can hit enter to auto-select that name. After making the above update the name no longer populated fully, it remained what you had typed it as. I corrected that by explicitly setting the name as the input field's value.

from mugshot.

amenk avatar amenk commented on July 2, 2024

Which browser are you using? I think it only happens if you entered some names before in that input field and they are in the browser's autocomplete function. I am also not sure how to control this browser function. I am using Chrome 99 and it is super annoying. It's more a browser problem but makes usage of the plugin hard.

I also know that overriding the browser autocomplete can be super hard. We could move the plugin's autocomplete box at the top of the popup though... but first it needs to be reproduced properly.

I found this one:

https://superuser.com/questions/884029/see-all-autofill-data

So I have autofill data for the fields name_1 Name of the family member which clashes with the suggestion by the plugin

There is this workaround: https://stackoverflow.com/a/29101636/288568

But it looks like autocomplete="off" should also work nowadays:

https://stackoverflow.com/questions/15738259/disabling-chrome-autofill

But:

For this to work be sure to have your input tag within a Form tag

which is currently in MugShot not the case

from mugshot.

amenk avatar amenk commented on July 2, 2024

I believe I found a reliable solution: #43

from mugshot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.