Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/PickerPanel/DatePanel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,8 @@ export default function DatePanel<DateType extends object = any>(props: DatePane

if (prefixColumn) {
headerCells.push(
<th key="empty">
<span style={{ width: 0, height: 0, position: 'absolute', overflow: 'hidden', opacity: 0 }}>
{locale.week}
</span>
<th key="empty" style={{ pointerEvents: 'none', opacity: 0 }}>
{locale.week}
</th>,
);
}
Expand Down
20 changes: 8 additions & 12 deletions tests/__snapshots__/panel.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3395,12 +3395,10 @@ exports[`Picker.Panel append cell with cellRender in week 1`] = `
>
<thead>
<tr>
<th>
<span
style="width: 0px; height: 0px; position: absolute; overflow: hidden; opacity: 0;"
>
Week
</span>
<th
style="pointer-events: none; opacity: 0;"
>
Week
</th>
<th>
Su
Expand Down Expand Up @@ -6958,12 +6956,10 @@ exports[`Picker.Panel override cell with cellRender in week 1`] = `
>
<thead>
<tr>
<th>
<span
style="width: 0px; height: 0px; position: absolute; overflow: hidden; opacity: 0;"
>
Week
</span>
<th
style="pointer-events: none; opacity: 0;"
>
Week
</th>
<th>
Su
Expand Down