facebook / facebook/lexical

Bug: commands do not work until the editor is focused in collab

Open
#5,012 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
23.9k
Forks
2.2k
Avg merge
1d 14h
Merged PRs (30d)
55

Description

Lexical version: 0.12.x

## Steps To Reproduce

1. Visit https://playground.lexical.dev/split/?isCollab=true&collabId=demo&isRichText=true&emptyEditor=true
2. Try clicking on the bold button or inserting a horizontal rule without focusing the editor

Link to code example: https://playground.lexical.dev/split/?isCollab=true&collabId=demo&isRichText=true&emptyEditor=true

## The current behavior

The commands are rejected (bold button does not get into the active state), the block control dropdown does not seem to work as well, and you cannot insert a horizontal rule

## The expected behavior

The commands should work, without focusing the editor initially

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.