Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

fix(dropdown): fix up arrow nav support #4330

Closed
wants to merge 2 commits into from

Conversation

icfantv
Copy link
Contributor

@icfantv icfantv commented Sep 2, 2015

  • add support for when user opens dropdown and then presses the up arrow key.

Fixes #4327

* add support for when user opens dropdown and then presses the up arrow key.

Fixes angular-ui#4327
expect(element.hasClass(dropdownConfig.openClass)).toBe(true);

triggerKeyDown($document, 38);
var elems = element.find('ul').eq(0).find('a');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be var elems = element.find('ul li').eq(0).find('a');

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the selector isn't the problem, rather the up trigger is not causing the anchor tag to become the document.activeElement. so the focus check will fail. why this is the case, i don't know. but essentially, the up arrow key is doing nothing here.

* add support for when user opens dropdown and then presses the up arrow key.

Fixes angular-ui#4327
@icfantv icfantv closed this in defcbbb Sep 2, 2015
@icfantv icfantv deleted the dropdown_keynav_4327 branch September 2, 2015 23:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants