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

Buttons get keyboard focus when tapped and also at random times #76

Open
n1ywb opened this issue Dec 2, 2016 · 1 comment
Open

Buttons get keyboard focus when tapped and also at random times #76

n1ywb opened this issue Dec 2, 2016 · 1 comment

Comments

@n1ywb
Copy link

n1ywb commented Dec 2, 2016

Description

FAB's get keyboard focus at weird times including

  • randomly when tapped
  • randomly when changing browser tabs

happens on desktop (chromium 53) and mobile (android chrome 53)

desktop (focus goes away if you click ANYWHERE in the browser window; even grabbing the screenshot removes it after the shot is taken)

image

mobile

http://imgur.com/aVH9g8T

Expected outcome

FAB should only acquire keyboard focus when the user tabs to it or maybe other times but not randomly

Actual outcome

fab acquires and loses keyboard focus and flashes to an ugly color when it happens

Live Demo

https://elements.polymer-project.org/elements/paper-fab?view=demo:demo/index.html&active=paper-fab

Steps to reproduce

  1. open https://elements.polymer-project.org/elements/paper-fab?view=demo:demo/index.html&active=paper-fab
  2. Open some more browser tabs
  3. switch back to demo tab
  4. switch to a different tab and back to demo tab until you see one of the buttons get focus (might take a few times)
  5. Switch to another tab and back to demo tab and sometimes it loses keyboard focus, sometimes not

Second way:

  1. open https://elements.polymer-project.org/elements/paper-fab?view=demo:demo/index.html&active=paper-fab
  2. start responsive design mode
  3. tap buttons until one of them starts to randomly acquire and lose keyboard focus when it is tapped

Browsers Affected

  • [ X ] Chrome Version 54.0.2840.100 (64-bit)
  • [ X ] Chromium 53 desktop
  • [ X ] Chrome 53 android
@keanulee
Copy link
Contributor

keanulee commented Dec 2, 2016

See also: PolymerElements/paper-button#24

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

2 participants