Skip to content

keyboard controls broken in single selection mode #201

Closed
@severinraez

Description

@severinraez

Hi

This component (v 3.0.0) raises an error if initialized as single select (see http://isteven.github.io/angular-multi-select/#/demo-single-selection-mode)

As I only need single selection, I hacked something together that works for me. I thought a pointer would be helpful to you. Changing the line

var checkboxes = element.children().children().next().children().next()[ 0 ].getElementsByTagName( 'input' );

to

var checkboxes = element.children().children().next().children()[0].getElementsByTagName('input');

resolves the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions