NileshPatel17 / ng-multiselect-dropdown

Multiple Select Dropdown Component
https://nileshpatel17.github.io/ng-multiselect-dropdown/
326 stars 287 forks source link

Open dropdown with keyboard #213

Open tgrannan opened 4 years ago

tgrannan commented 4 years ago

Angular version: V8

ng-multiselect-dropdown version:2.10

Description of issue: I am trying to open the dropdown with either the spacebar or enter key. Orginally I could not get it to tab to the control. I had to add the tabindex to get it to work.

Any relevant code: <ng-multiselect-dropdown [placeholder]="'Select Facilities'" [ngClass]="{ 'is-invalid': userDetailForm.get('userFacilities').errors && userDetailForm.get('userFacilities').touched }" formControlName="userFacilities" [data]="userFacilities" tabindex="5" [settings]="dropdownSettings">

epiphanizer commented 4 years ago

(keyup.tab) on the ng-multiselect-dropdown worked for me to get the correct focus, but there is no method for opening the dropdown from there. :-/

edcourtney74 commented 3 years ago

Has anyone been able to get the dropdown open from the keyboard? We want to use this but are not able to if we can't open with keyboard.