Skip to content
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
@alexanderchan

Description

@alexanderchan

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions