Skip to content

How to prevent .length == 'undefined' error when populating dropdown via on-open #569

Description

@sterichards

I'm dynamically loading the data into the dropdown upon a user opening a dropdown

I use on-open="loadDataIntoDropdown()" and it works great but it throws up the following error into the console:

angular.js:12520 TypeError: Cannot read property 'length' of undefined at Scope.$scope.refreshButton (isteven-multi-select.js:521)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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