Commit 22f9dc31 authored by Randall Leeds's avatar Randall Leeds

Ensure match directive digests in DOM callback

Otherwise, this only clears at the appropriate time when triggered
by a scope change, not when triggered by keyup.
parent 63384392
......@@ -367,7 +367,8 @@ whenscrolled = ->
match = ->
link: (scope, elem, attr, input) ->
validate = ->
input.$setValidity('match', scope.match == input.$modelValue)
scope.$evalAsync ->
input.$setValidity('match', scope.match == input.$modelValue)
elem.on('keyup', validate)
scope.$watch('match', validate)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment