Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Demos: Fix search navigation through keyboard #8406

Closed
wants to merge 3 commits into from

Conversation

apsdehal
Copy link
Contributor

As for a reason why nextAll/prevAll is used against next/prev, follow this link
Fixes #8405
Refs #8245

if ( this.element.find( "li.ui-button-active" ).length === 0 ) {
this.element.find( "li:first" ).toggleClass( "ui-button-active" ).find("a").toggleClass( "ui-button-active" );
if ( this.element.find( "li.ui-listview-item-active" ).length === 0 ) {
this.element.find( "li:not('.ui-screen-hidden'):first" )
Copy link
Contributor

Choose a reason for hiding this comment

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

lets simplify this to .find( "li ).not( ".ui-screen-hidden" ).first(); we generally prefer methods over selectors

@arschmitz
Copy link
Contributor

👍

@jaspermdegroot
Copy link
Contributor

Thanks for fixing this @apsdehal !

@cogwurx has been tweaking the menu styles. I think the background color you set in this PR has to be adjusted to match his style and @cogwurx probably has to fix selectors in his PR to match your changes. See https://github.com/jquery/jquery-mobile/pull/8389/files#diff-ccdaf42db1312d7cb7e21a8bb76543d6R976.

@apsdehal
Copy link
Contributor Author

@jaspermdegroot I will fix my change, that is why I was waiting for your comment before merging it. :)

@apsdehal apsdehal closed this Mar 26, 2016
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.

4 participants