Skip to content

TypeError: undefined is not a function - element[0].select() #48

@cougar2010

Description

@cougar2010

In line 67 in directive.coffee element[0].select() will be returned which seems to be undefined in case of an validation error.

Console output:

TypeError: undefined is not a function
    at Object.angular.module.directive.link.rule.validator.error (angular-validator.js:63)
    at angular-validator.js:402
    at deferred.promise.then.wrappedCallback (angular.js:11682)

I think this can easily be fixed with try catch or undefined check.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions