Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Renders focus state on click #10

Open
amannn opened this issue Feb 8, 2015 · 0 comments
Open

Renders focus state on click #10

amannn opened this issue Feb 8, 2015 · 0 comments

Comments

@amannn
Copy link

amannn commented Feb 8, 2015

I have a Paper FAB button in my app. I'm experiencing an issue on mobile devices with the current Chrome 40: When I tap on such a button the focussed state is being rendered (elevation on the z-axis).

I've also tried the demo on the polymer site. Same happens there, so i guess it's not the fault of my app.

It can also be reproduced when the mobile emulation mode of desktop Chrome is turned on and the emulation featre "Emulate touch screen" is enabled.

By tracking the issue down, it seems like it has its origin in core-focusable. By inserting some console.logs I found that on a tap the following functions are called in this order: _downAction, _upAction and then _focusAction.

Shouldn't _focusAction be called between _downAction and _upAction (if at all)? That way the focus state wouldn't be rendered, because this is prevented when this.pressed is set to true.

I'm using Polymer 0.5.4.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant