paper-fab
paper-fab copied to clipboard
Buttons get keyboard focus when tapped and also at random times
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)

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
- open https://elements.polymer-project.org/elements/paper-fab?view=demo:demo/index.html&active=paper-fab
- Open some more browser tabs
- switch back to demo tab
- switch to a different tab and back to demo tab until you see one of the buttons get focus (might take a few times)
- Switch to another tab and back to demo tab and sometimes it loses keyboard focus, sometimes not
Second way:
- open https://elements.polymer-project.org/elements/paper-fab?view=demo:demo/index.html&active=paper-fab
- start responsive design mode
- 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
See also: https://github.com/PolymerElements/paper-button/issues/24