docs/solutions/logic-errors/2026-05-09-collapsed-inline-link-insertion-must-move-selection-outside.md
Lexical regression 1113 exposed a missing Slate browser proof: after a URL is typed and wrapped as an inline link, pressing Enter should place the selection outside the link. The next block must not inherit an empty duplicate link.
https://example.com links. rendering.Add a focused inlines browser row:
Then make collapsed link insertion move one offset after inserting the inline:
tx.nodes.insert(link)
tx.selection.move({ unit: 'offset' })
This mirrors the boundary policy already used by the mentions example.
Inserting a non-void inline at a collapsed selection can leave the model selection at the end of the inline's text. The next structural key then splits from inside the inline and carries an empty inline wrapper into the new block.
Moving by offset after insertion places the selection at the outside boundary between the inline and the following text position. Enter then splits the block from the correct editor point.