Skip to content

Commit

Permalink
[simple-v-table] Fix null-ref with sortable headers in top-left
Browse files Browse the repository at this point in the history
  • Loading branch information
kimo-k committed May 8, 2024
1 parent 1677ea6 commit 17e845b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
> Committed but unreleased changes are put here, at the top. Older releases are detailed chronologically below.

## 2.21.3 (2024-05-09)

#### Fixed

- Crash when declaring :sort-by for simple-v-table headers in top-left section

## 2.21.2 (2024-05-09)

Expand Down
5 changes: 3 additions & 2 deletions src/re_com/simple_v_table.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,9 @@
;:max-width (px (or max-width (+ fixed-content-width content-width v-table/scrollbar-tot-thick))) ; :max-width handled by enclosing parent above
;; ===== Corners (section 1, 3)
:top-left-renderer (fn [i row] [column-header-renderer {:columns fixed-cols
:parts parts
:sort-by-column sort-by-column}]) ;; Used when there are fixed columns
:hover? header-hover?
:parts parts
:sort-by-column sort-by-column}]) ;; Used when there are fixed columns
:top-right-renderer (when show-export-button?
#(let [rows (deref-or-value model)
columns (deref-or-value columns)
Expand Down

0 comments on commit 17e845b

Please sign in to comment.