Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autofill disable possibility #1363

Closed
wants to merge 1 commit into from
Closed

Autofill disable possibility #1363

wants to merge 1 commit into from

Conversation

alshenetsky
Copy link

The only option to disable autofill in modern browsers is to provide a possibility to set autocomplete="new-password"

The only option to disable autofill in modern browsers is to provide a possibility to set autocomplete="new-password"
@alanbarboza
Copy link

It really solves the problem!
Thanks @alshenetsky

@Magellanth
Copy link

Would be really usefull to include this option in master branch - Chrome autofill ignores autocomplete="off"

oyejorge added a commit to orchidjs/tom-select that referenced this pull request Sep 18, 2020
@bryceadams
Copy link

bryceadams commented Nov 10, 2020

For others with this issue, you could try solving it through a Selectize plugin, like so:

Selectize.define('no_autocomplete', function (options){
    var self = this;

    self.setup = (function(){
        var original = self.setup;

        return function(){
            original.apply(self, arguments);
            self.$control_input.attr({
                'autocomplete': 'nope',
            });
        };
    })();
});

@github-actions
Copy link
Contributor

github-actions bot commented Jan 1, 2021

Stale pull request message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants