Skip to content

Bug: Selection changes when typing after pasting #7490

@jvithlani

Description

@jvithlani

When you paste some content from outside, say some text with some background color and different font size, and i just continue typing from there the selection should ideally contain those values and the new added text should look the same, but thats not the case

Lexical version: v0.30.0

Steps To Reproduce

  1. copy some content from outside, paste it
  2. immediately type something

Link to code example:

The current behavior

Screen.Recording.2025-04-24.at.3.24.11.AM.mov

The expected behavior

Screen.Recording.2025-04-24.at.3.24.47.AM.mov

Impact of fix

This will just improve the overall UX for copy pasting

Metadata

Metadata

Assignees

No one assigned

    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