Skip to content

TypeError in saveAndRestoreFocus when restored id resolves to a non-input element #151

@emaia

Description

@emaia

saveAndRestoreFocus can throw TypeError: activeElement.setSelectionRange is not a function during a morph.

Related: hotwired/turbo#1538

Fix: #150

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