Skip to content

Commit

Permalink
Preserve style on spillage
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhanshuguptagit committed Feb 4, 2024
1 parent ddea832 commit 985dd60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bean/grid.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@
blank? (empty? (:content cell))
spilled-by-other? (:spilled-from cell)
is-spiller? (= relative-address [0 0])
spilled-cell (assoc %2 :interested-spillers (:interested-spillers cell))]
spilled-cell (merge %2 {:interested-spillers cell
:style (:style cell)})]
(if (or is-spiller? (and (not spilled-by-other?) blank?))
(assoc-in %1 address* spilled-cell)
(reduced false)))
Expand Down

0 comments on commit 985dd60

Please sign in to comment.