Skip to content

autoFocus causing popover style to scroll browser to top #5

Description

@daweimau

It seems this commit introduced a bug related to the autoFocus attribute

When an Editable:

  • is a textField type, and
  • uses mode="popover",

the first time the editable link is clicked, the browser screen will scroll to top. Subsequent opens of the same Editable popover won't do this.

This doesn't happen in version 0.5.1.

When we remove autoFocus from the Input element, this behaviour stops. But generally autoFocus is desirable, so it would be better to understand and cure this behaviour if possible.

It is definitely the autoFocus attribute. Other field types (which don't have autoFocus) are not affected (and they become affected by introducing autoFocus).

Can't figure out the rest, which sucks for me.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions