Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selected tabindex doesn't update first time #198

Open
greenyouse opened this issue Jan 20, 2017 · 0 comments
Open

Selected tabindex doesn't update first time #198

greenyouse opened this issue Jan 20, 2017 · 0 comments

Comments

@greenyouse
Copy link

Description

I think there's an issue with updating the tabindex on the first selection. It could be because Polymer.IronMenuBehaviorImpl.focusedItem isn't set when the element is initialized.

Polymer.IronMenuBehaviorImpl._focusedItemChanged is what would usually handle the tabindex behavior but it doesn't change the selected item's tabindex because the item is never set as focused.

Expected outcome

The tabindex of a selected tab starts as 0 but becomes -1 when another tab gets selected.

Actual outcome

The tabindex stays as 0 after selecting another tab for the first time.

Live Demo

http://jsbin.com/jagoruqabi/1/edit?html,output

Steps to reproduce

  1. Render paper-tabs with a selected attribute.
  2. Tap an adjacent tab.
  3. Tap the selected tab.
  4. Tap an adjacent tab.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant