facebook / facebook/lexical

Bug: Select all (cmd/ctrl + A) doesn't work when there's a DecoratorBlockNode with nested editors as the first child

Open
#4,358 2 comments 4 reactions 0 assignees View on GitHub
all-platforms-bug core
Dominant language
TypeScript
Stars
23.9k
Forks
2.2k
Avg merge
1d 14h
Merged PRs (30d)
55

Description

https://user-images.githubusercontent.com/688415/233078980-ae2554ef-d72a-47d3-9852-b0d4dc571921.mov

Lexical version: 0.10.0 (if this is what's running on playground.lexical.dev right now)

This could be related to #4357, although in this case the select all keyboard shortcut doesn't select any text at all.

## Steps To Reproduce

1. Insert an experimental table node
2. Remove any content above it
3. Try to select everything with cmd/ctrl + A (as seen attempted in the Keyboard window in the video recording above)

## The current behavior
The select all keyboard shortcut does nothing (or technically speaking, it seems to be selecting everything and deselecting again right after)

## The expected behavior
The select all keyboard shortcut should select everything in the editor.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.