a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

properly ignore selection changes

+1 -1
+1 -1
components/Blocks/TextBlock/index.tsx
··· 268 268 if (!existingState) return s; 269 269 let newState = existingState.editor.apply(tr); 270 270 let addToHistory = tr.getMeta("addToHistory"); 271 - let docHasChanges = !tr.steps.length || tr.docChanged; 271 + let docHasChanges = tr.steps.length !== 0 || tr.docChanged; 272 272 if (addToHistory !== false && docHasChanges) { 273 273 if (actionTimeout.current) { 274 274 window.clearTimeout(actionTimeout.current);