Altering ng-input to hold the viewValue instead of the modelValue, because the viewValue is set when user press ESC