Skip to content

removeFromParent doesn't readjust selection #6031

@zurfyx

Description

@zurfyx

Functions like removeNode have had restoreSelection built-in for years now. removeFromParent or their callers should do the same.

Currently, you can call insertBefore, trigger a node removal and the selection won't be recomputed which can lead to an invalid selection, see the referenced PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    all-platforms-bugcoreReconciler, DOM, Selection, Node, Events, Composition

    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