Skip to content

Bug: useCharacterLimit autolink infinite loop bug #6662

Open
@redstar08

Description

copy text and paste to Editor, type any link in overflow node, infinite loop
(eg.[https://x.com])

useCharacterLimit autolink infinite loop bug
type a link in overflow node
http://x.
image

Lexical version: 0.17.1

Steps To Reproduce

  1. add CharacterLimitPlugin and AutoLinkPlugin or LinkPlugin
  2. type a link in overflow node

Link to code example:
https://playground.lexical.dev/?isCharLimit=true

The current behavior

infinite loop in useCharacterLimit -> $wrapOverflowedNodes

The expected behavior

$wrapOverflowedNodes can deal autolink node or link node

Impact of fix

Can I fix it by modify $wrapOverflowedNodes ?

see the comment below

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