mirror of
https://github.com/ruilisi/fortune-sheet.git
synced 2025-01-07 03:16:50 +08:00
Merge pull request #648 from ruilisi/434-invalid-value-for-the-leftcss-style-warning-is-randomly-raised
fix: null check for freeze handles
This commit is contained in:
commit
27e733d8da
@ -220,7 +220,7 @@ const ColumnHeader: React.FC = () => {
|
||||
className="fortune-cols-freeze-handle"
|
||||
onMouseDown={onColFreezeHandleMouseDown}
|
||||
style={{
|
||||
left: freezeHandleLeft,
|
||||
left: freezeHandleLeft || 0,
|
||||
}}
|
||||
/>
|
||||
<div
|
||||
|
@ -210,7 +210,7 @@ const RowHeader: React.FC = () => {
|
||||
className="fortune-rows-freeze-handle"
|
||||
onMouseDown={onRowFreezeHandleMouseDown}
|
||||
style={{
|
||||
top: freezeHandleTop,
|
||||
top: freezeHandleTop || 0,
|
||||
}}
|
||||
/>
|
||||
<div
|
||||
|
Loading…
Reference in New Issue
Block a user