facebook / facebook/lexical

Bug: registerUpdateListener gives stale state after clearing formatting

Open
#6,301 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)
57

Description

Lexical version: 16.0.0

Already reported before. My previous issue was closed with unrelated fix.
https://github.com/facebook/lexical/issues/3456

## Steps To Reproduce

1. open playground (https://playground.lexical.dev/)
2. select text
3. click bold
image

4. click on clear formatting
image

5. bold still active
image

Interesting it works in safari but doesn't work in chrome

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.