Skip to content

Error when I click on a dropdownlist with angular-keyboard ! #2

Description

@jcstritt

Hello. I use Angular-keyboard with a dropdownlist from bootstrap in an AngularJS directive. Sometimes when i clik on a dropdownlist, i have this message that appear :

TypeError: Cannot read property 'name' of undefined
    at http://code.gampleman.eu/angular-keyboard/grunt-scripts/angular-keyboard.js:1257:35
    at Object.forEach (https://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.js:332:20)
    at select (http://code.gampleman.eu/angular-keyboard/grunt-scripts/angular-keyboard.js:1252:13)
    at _checker (http://code.gampleman.eu/angular-keyboard/grunt-scripts/angular-keyboard.js:1293:13)
    at getSelection (http://code.gampleman.eu/angular-keyboard/grunt-scripts/angular-keyboard.js:1294:13)
    at Object.$watchCollectionAction [as fn] (https://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.js:12410:13)
    at Scope.$digest (https://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.js:12541:29)
    at Scope.$apply (https://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.js:12806:24)
    at https://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.js:14314:36
    at completeOutstandingRequest (https://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.js:4397:10) 

Here's the partial code in the dropdownlist template :
image

I have found that's the problem is coming when two dropdownlists are in same view and when i click one when the other is open. Have you any idea for this issue?

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions