Commit 9f1fe4ab authored by Randall Leeds's avatar Randall Leeds

More sensible for for #503

I have no idea what you all were trying to do, but if this field
isn't required just remove the required attribute!
parent eaf6d492
......@@ -61,7 +61,6 @@ markdown = ['$filter', '$timeout', ($filter, $timeout) ->
# React to the changes to the text area
input.bind 'blur change keyup', ->
attr.required = scope.realRequired
ctrl.$setViewValue input[0].value
scope.$digest()
......@@ -71,10 +70,6 @@ markdown = ['$filter', '$timeout', ($filter, $timeout) ->
ctrl.$render()
unless readonly then $timeout -> input.focus()
# We save the required field, since it magically changes later on.
# No idea why this happens; until we find out, this is a workaround.
scope.realRequired = scope.required
require: '?ngModel'
restrict: 'E'
scope:
......
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