I am trying to implement auto sized text field based on the solution from this question
<input style="width:20px;" onkeypress="this.style.width = ((this.value.length + 1) * 5) + 'px';" ng-model="questionButtons[$index].title" type="text" class="edt_spn active" >
it works fine however when the user deletes characters width is not adjusting
<input style="width:20px;" onkeypress="this.style.width = ((this.value.length + 1) * 5) + 'px';" ng-model="questionButtons[$index].title" type="text" class="edt_spn active" >