Skip to content

Commit

Permalink
fix: limit max number of rows in new matrix modal
Browse files Browse the repository at this point in the history
Use same limit as number of columns to prevent matrices so large that they'll crash the sheet
  • Loading branch information
mgreminger committed Apr 16, 2024
1 parent 8c448a9 commit b1140e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/CustomMatrixModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
<div class="number-input">
<NumberInput
min={1}
max={MAX_MATRIX_COLS}
bind:value={numRows}
label="Matrix Rows"
/>
Expand Down

0 comments on commit b1140e3

Please sign in to comment.