How do I remove the "clear button" from a ng-select field with search?
I'm using angular 6 with ng-select package: https://www.npmjs.com/package/@ng-select/ng-select
Add [clearable]="false"
attribute to your ng-select tab
Example:
<ng-select class="disable-clear-all" [clearable]="false" [searchable]="false">
</ng-select>
In your stylesheet add display: none;
to the .ng-clear-wrapper
selector.
Like so:
.ng-select .ng-clear-wrapper {
display: none;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With