Been troubleshooting this error for many hours now. The hard part is that I am not even using $apply
Error: [$rootScope:inprog] $apply already in progress
http://errors.angularjs.org/1.3.16/$rootScope/inprog?p0=%24apply
at angular.js:63
at beginPhase (angular.js:14901)
at Scope.$digest (angular.js:14343)
at HTMLDocument.dismissClickHandler (mm-foundation-tpls.js:3282)
at HTMLDocument.jQuery.event.dispatch (jquery.js:4435)
at HTMLDocument.elemData.handle (jquery.js:4121)
at Object.jQuery.event.trigger (jquery.js:4350)
at HTMLInputElement.<anonymous> (jquery.js:4901)
at Function.jQuery.extend.each (jquery.js:374)
at jQuery.fn.jQuery.each (jquery.js:139)
it happens when it calls the function with the trigger click code. It's in a directive. Here is a snippet
link: function ($scope, el) {
$scope.openBrowse = function () {
el.find('#container').trigger('click');
};
}