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

Renders focus state on click #10

Description

@amannn

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions