Skip to content

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

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions