-
Notifications
You must be signed in to change notification settings - Fork 6.7k
2.0.0 breaks keyboard-nav on uib-dropdown #6102
Comments
@wesleycho, thoughts? |
So as mentioned in the commit that changed this, the reason for the change is #5965 - in particular, this change is mandatory when appending/destroying the dropdown menu on toggle for the append-to option. We need to look at this carefully. |
Even with |
|
OK what about binding the keydown to the document and then checking if the trigger element or the dropdown menu contains the
|
@wesleycho any more thoughts on my proposed solution to this? Happy to work on a PR for it unless you can think of any potential issues with it? |
I am not able to evaluate any issues deeply for at least another week - I am currently on vacation in Europe (have been for the past two weeks). |
Ah no worries, enjoy your holiday! 😄 |
Reading your proposed solution, I think this might be how we have to handle this - would you be interested in filing a PR? Adding a test for this situation also would help guard us from breaking this accessibility related issue in the future. |
Sure thing, I'll try and get to it over the next day or so |
Bug description:
keyboard-nav
on theuib-dropdown
menu is broken in2.0.0
. It looks like it was this commit that broke it: 6038403If you add the event listener on the
$document
instead of the dropdown menu element then it works, I'd send a PR but I'm assuming there is a reason why the event listener is bound to the dropdown menu instead of the document.Link to minimally-working plunker that reproduces the issue:
http://plnkr.co/edit/AmmUCB7iidPBKVw6r1Ne?p=preview
(Hit the up and down arrows after opening the dropdown - this was just copied from the demo)
Version of Angular, UIBS, and Bootstrap
Angular:
1.5.x
UIBS:
2.0.0
Bootstrap:
3.3.6
The text was updated successfully, but these errors were encountered: