Skip to content

Commit

Permalink
Fix formulas in added and removed columns
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrieb committed Jan 17, 2025
1 parent c4db1d4 commit 36a60de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/classes.svelte.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,10 @@ export class Sheet {
cell.errorText = undefined;
cell.element = undefined;

// Re-run this effect if rows or columns are added or removed
this.heights.length;
this.widths.length;

if (cell.formula == null) {
cell.value.rederive([], (_, set) => set(undefined));
return;
Expand Down
2 changes: 0 additions & 2 deletions todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,6 @@
- Manually have to detect long press
- The bottom border of sheet tabs do not adjust after renaming
- If all sheets are deleted, it glitches
- User formulas don't work on first load
- Cannot use formulas in added rows or columns until after refresh
- Clicking a cell in insert mode switches to normal mode
- All lists get flattened, when only the top level should (if that)
- Checkboxes and sliders don't keep their values when you send sheets

0 comments on commit 36a60de

Please sign in to comment.