You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This happens for every macOS text replacement. This behavior does not match expectations, leading to users who type fast missing spaces (or, rather, typing before them). This is arguably the fault of how Chrome and Firefox fire the Space beforeinput event before the replacement event (Safari doesn't, so it's fine).
Lexical version: commit
4a43cb027f55718d6d32cc7fb8e7ec31adf59d2eSteps To Reproduce
Link to code example:
Screen.Recording.2026-04-28.at.14.11.05.mov
The current behavior
The caret ends up before the space.
The expected behavior
The caret ends up after the space.
Impact of fix
This happens for every macOS text replacement. This behavior does not match expectations, leading to users who type fast missing spaces (or, rather, typing before them). This is arguably the fault of how Chrome and Firefox fire the Space
beforeinputevent before the replacement event (Safari doesn't, so it's fine).