only setRange if fired from directive or input has ng-dirty class