I would like to customize the X icon on the p-autocomplete component, in order to get this:
Loading suggestions phase:
Done loading suggestions:
The only thing that i'm getting right now is this:
The X icon doesn't move to the right, even if the primeng loading icon is not visible. The only thing i was able to achieve was this:
input[type="search"] {
padding-right:0px!important;
}
I know that i can customize the X icon by using
input[type="search"]::-webkit-search-cancel-button {
...
}
But i don't know how. Any suggestions?
EDIT:
This is how you achieve to show the X icon:
<p-autocomplete ... [type]="'search'"></p-autocomplete>