This repository was archived by the owner on May 28, 2019. It is now read-only.
This repository was archived by the owner on May 28, 2019. It is now read-only.
scope.$apply fails in angular 1.3rc2 #95
Closed
Description
Angular 1.3rc2 fails with $apply already in progress error.
var _onSelect = opts.onSelect || angular.noop;
opts.onSelect = function (value, picker) {
scope.$apply(function() {
showing = true;
controller.$setViewValue(element.datepicker("getDate"));
_onSelect(value, picker);
element.blur();
});
};
Removing the $apply fixes part of this but then 'should handle unusual model values' tests fail. Any ideas on what can help resolve the apply problem and how best to correct the tests?
Metadata
Metadata
Assignees
Labels
No labels