I have some autocomplete fields in a form that doesn't clear the text when backspace key is pressed. I need to enable the backspace function but i dont know anything about angular js and I haven't find anything helpful online for this case. Autocomplete is defined in a file that is called angular-material.js .Angular is version 1.6 . Here is the html side of the field:
<md-autocomplete flex required ng-disabled="ctrl.isDisabled"
md-no-cache="ctrl.noCache" md-selected-item="ctrl.selectedProvince"
md-search-text="ctrl.searchTextProvince"
md-items="item in ctrl.queryProvince(ctrl.searchTextProvince)"
md-selected-item-change="ctrl.searchProvinceChange(item)"
md-item-text="item.province" md-min-length="0"
md-floating-label="Provincia"> <md-item-template>
<span md-highlight-text="ctrl.searchTextProvince"
md-highlight-flags="^i">{{item.province}}</span> </md-item-template> <md-not-found>
No result containing "{{ctrl.searchText}}" è is found. <!-- <a ng-click="ctrl.newState(ctrl.searchText)">Create a new one!</a>-->
</md-not-found> </md-autocomplete>
Anybody can help me on what should i modify to enable the backspace?(Delete key is working)