Trailing space is trimmed automatically in list items while typing, causing words to merge
Both Mac and Windows.
What went wrong?
When editing text inside a list (bulleted/numbered) in the editor, the trailing space at the end of a word is automatically removed while the user is typing. This happens if the user pauses to think for a moment — before the next word is typed. It looks like some internal background process (likely related to state sync, autosave, or normalization) periodically runs and applies a trim operation to the text content.
As a result, if the user types while looking at the keyboard, pauses to think about the next word, and then keeps typing, the space at the end of the previous word is already gone. The next word gets appended directly to the previous one, producing merged words like "thequick brown fox". Multiple words can be glued together in a single sentence if the user pauses several times.
Steps to reproduce:
- Open a document and create a bulleted or numbered list.
- Start typing a sentence: type a word followed by a space.
- Pause for a few seconds without typing anything (simulate thinking about the next word).
- Continue typing the next word.
- Observe that the word is appended directly to the previous one — the space is lost.
What should happen?
The trailing space should never be removed from the position where the user is actively typing, regardless of how long the user pauses. Autosave, state synchronization, or any internal text normalization should preserve the caret position context and must not alter the text being actively edited. The text the user has typed — including trailing whitespace that separates words — should remain exactly as entered until the user explicitly deletes it.
1 Comment
Sign in to comment

Confirmed on my side.