Skip to content

paper buttons get unexpected focus on Android and iOS Chrome #80

@jab

Description

@jab

Expected outcome

The button is not focused.

Actual outcome

The button is focused.

Live Demo

https://jab.github.io/paper-behaviors-issue-80/

source: https://github.com/jab/paper-behaviors-issue-80/

Steps to reproduce

  1. Open the live demo in Chrome for Android or iOS (does not reproduce in iOS Safari)
  2. Click the "go to page 2" link as directed
  3. Click the back button as directed

Browsers Affected

  • Chrome v58.0.3029.83 on Android 6.0.1 (Nexus 5 Build/M4B30Z)
  • Chrome v59.0.3071.84 on iOS 10.3.2 (iPhone 7 plus)
  • Safari on iOS 10.3.2 (iPhone 7 plus)

Hypothesis

Looking at https://github.com/PolymerElements/paper-behaviors/blob/fd8c137/paper-inky-focus-behavior.html#L26-L33, I think what's happening is that for some reason, the receivedFocusFromKeyboard param is getting passed in as true, even though the only user interactions have been taps (there's no keyboard in sight).

Screenshots

Chrome for iOS

iOS

Chrome for Android

Android

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions