Skip to content

Autofill disable possibility#1363

Closed
alshenetsky wants to merge 1 commit intoselectize:masterfrom
alshenetsky:master
Closed

Autofill disable possibility#1363
alshenetsky wants to merge 1 commit intoselectize:masterfrom
alshenetsky:master

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

@github-actions github-actions bot closed this Jan 6, 2021
alizfara112 added a commit to alizfara112/tom-select that referenced this pull request Jun 10, 2025
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.

4 participants