Full document, spreadsheet, slideshow, and diagram tooling
0
fork

Configure Feed

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

Merge pull request 'fix: prevent renderGrid from destroying active cell editor' (#33) from fix/sheets-edit-duplication into main

scott e5dcc502 d5dccdac

+6 -1
+6 -1
src/sheets/main.js
··· 228 228 let _renderGridTimer = null; 229 229 function scheduleRenderGrid() { 230 230 if (_renderGridTimer) return; 231 - _renderGridTimer = requestAnimationFrame(() => { _renderGridTimer = null; renderGrid(); }); 231 + _renderGridTimer = requestAnimationFrame(() => { 232 + _renderGridTimer = null; 233 + // Don't rebuild the grid while user is editing a cell — it destroys the input 234 + if (editingCell) { refreshVisibleCells(); return; } 235 + renderGrid(); 236 + }); 232 237 } 233 238 function renderGrid() { 234 239 const sheet = getActiveSheet();