-
Notifications
You must be signed in to change notification settings - Fork 27.4k
feat(input): add opt-in support for input[range]
#15229
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -883,7 +883,8 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$ | |
ctrl.$viewValue = ctrl.$$lastCommittedViewValue = viewValue; | ||
ctrl.$render(); | ||
|
||
ctrl.$$runValidators(modelValue, viewValue, noop); | ||
// It is possible that model and view value have been updated during render | ||
ctrl.$$runValidators(ctrl.$modelValue, ctrl.$viewValue, noop); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So this is not a breaking change because if $render didn't change the value then it will be the same as before, right? I think it is only the range input that is likely to do this... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Among the built-in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Although even in that case, it could be considered a fix 😁 |
||
} | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It probably doesn't make any difference but we should probably switch this line with the line above to ensure the order of the code is the same as previously.