Original select2 had an option called Hiding the search box which would disable manual user input for a dropdown. This is very useful when you have a small list of options in a dropdown and don't want the user to be able to type.
馃憤 Any update on the anticipated availability of this feature?
dis you achieve this ?
Bump
you could just override the css and hide it
.ui-select-search {
display: none;
}
@dafreaki this does not appear to work either.
here what i did
in the style.css
/* hiding the search */
.no-search-select .ui-select-container{
min-height: 34px;
}
.no-search-select .ui-select-search {
display: none;
}
.no-search-select .ui-select-choices{
margin-top: -34px !important;
}
in the html
search box is hidding ok, but value cant able select?
[noAutoComplete]="true"
[searchable]="false" [clearable]="false"
@jeffhughescitadel Thanks a lot!
Nothing here works
Most helpful comment
[searchable]="false" [clearable]="false"