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

How to disable "No matches found" and autocomplete at all on select2/Tagging Support? #1657

Closed
Artgit opened this issue Aug 27, 2013 · 6 comments

Comments

@Artgit
Copy link

Artgit commented Aug 27, 2013

Hello,

How to disable "No matches found" and autocomplete at all on select2/Tagging Support?

Thanks

@cookieguru
Copy link

JS:

$('#element').select2({
    tags:[],
    formatNoMatches: function() {
        return '';
    },
    dropdownCssClass: 'select2-hidden'
});

CSS:

.select2-hidden {
    display:none !important;
}

@cesarmoralesa
Copy link

Great!!

@alexander-shch
Copy link

You can just put this in your css

span.select2-search.select2-search--dropdown{
    display:none;
}

@cesarmoralesa
Copy link

????

On 5 July 2015 at 07:44, Alexander notifications@github.com wrote:

You can just put this in your css

span.select2-search.select2-search--dropdown{display:none;}


Reply to this email directly or view it on GitHub
#1657 (comment).

@ghost
Copy link

ghost commented Oct 13, 2015

.select2-no-results {
display: none !important;
}

@plentz
Copy link

plentz commented Jan 14, 2016

.select2-results__message {
  display: none !important;
}

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

No branches or pull requests

6 participants