Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: TanStack/table
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v8.11.5
Choose a base ref
...
head repository: TanStack/table
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v8.11.6
Choose a head ref
  • 2 commits
  • 7 files changed
  • 2 contributors

Commits on Jan 12, 2024

  1. Copy the full SHA
    0c0a947 View commit details
  2. release: v8.11.6

    tannerlinsley committed Jan 12, 2024
    Copy the full SHA
    3afe02d View commit details
2 changes: 1 addition & 1 deletion packages/react-table-devtools/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tanstack/react-table-devtools",
"author": "Tanner Linsley",
"version": "8.11.5",
"version": "8.11.6",
"description": "Devtools for React Table",
"license": "MIT",
"homepage": "https://github.com/tanstack/table#readme",
2 changes: 1 addition & 1 deletion packages/react-table/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tanstack/react-table",
"author": "Tanner Linsley",
"version": "8.11.5",
"version": "8.11.6",
"description": "Headless UI for building powerful tables & datagrids for React.",
"license": "MIT",
"homepage": "https://github.com/tanstack/table#readme",
2 changes: 1 addition & 1 deletion packages/solid-table/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tanstack/solid-table",
"author": "Tanner Linsley",
"version": "8.11.5",
"version": "8.11.6",
"description": "Headless UI for building powerful tables & datagrids for Solid.",
"license": "MIT",
"homepage": "https://github.com/tanstack/table#readme",
2 changes: 1 addition & 1 deletion packages/svelte-table/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tanstack/svelte-table",
"author": "Tanner Linsley",
"version": "8.11.5",
"version": "8.11.6",
"description": "Headless UI for building powerful tables & datagrids for Svelte.",
"license": "MIT",
"homepage": "https://github.com/tanstack/table#readme",
2 changes: 1 addition & 1 deletion packages/table-core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tanstack/table-core",
"author": "Tanner Linsley",
"version": "8.11.5",
"version": "8.11.6",
"description": "Headless UI for building powerful tables & datagrids for TS/JS.",
"license": "MIT",
"homepage": "https://github.com/tanstack/table#readme",
20 changes: 11 additions & 9 deletions packages/table-core/src/features/ColumnSizing.ts
Original file line number Diff line number Diff line change
@@ -320,7 +320,6 @@ export const ColumnSizing: TableFeature = {
return 0
}
header.getResizeHandler = _contextDocument => {
const contextDocument = _contextDocument || document
const column = table.getColumn(header.column.id)
const canResize = column?.getCanResize()

@@ -409,14 +408,17 @@ export const ColumnSizing: TableFeature = {
}))
}

const contextDocument =
_contextDocument || typeof document !== 'undefined' ? document : null

const mouseEvents = {
moveHandler: (e: MouseEvent) => onMove(e.clientX),
upHandler: (e: MouseEvent) => {
contextDocument.removeEventListener(
contextDocument?.removeEventListener(
'mousemove',
mouseEvents.moveHandler
)
contextDocument.removeEventListener(
contextDocument?.removeEventListener(
'mouseup',
mouseEvents.upHandler
)
@@ -434,11 +436,11 @@ export const ColumnSizing: TableFeature = {
return false
},
upHandler: (e: TouchEvent) => {
contextDocument.removeEventListener(
contextDocument?.removeEventListener(
'touchmove',
touchEvents.moveHandler
)
contextDocument.removeEventListener(
contextDocument?.removeEventListener(
'touchend',
touchEvents.upHandler
)
@@ -455,23 +457,23 @@ export const ColumnSizing: TableFeature = {
: false

if (isTouchStartEvent(e)) {
contextDocument.addEventListener(
contextDocument?.addEventListener(
'touchmove',
touchEvents.moveHandler,
passiveIfSupported
)
contextDocument.addEventListener(
contextDocument?.addEventListener(
'touchend',
touchEvents.upHandler,
passiveIfSupported
)
} else {
contextDocument.addEventListener(
contextDocument?.addEventListener(
'mousemove',
mouseEvents.moveHandler,
passiveIfSupported
)
contextDocument.addEventListener(
contextDocument?.addEventListener(
'mouseup',
mouseEvents.upHandler,
passiveIfSupported
2 changes: 1 addition & 1 deletion packages/vue-table/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tanstack/vue-table",
"author": "Tanner Linsley",
"version": "8.11.5",
"version": "8.11.6",
"description": "Headless UI for building powerful tables & datagrids for Vue.",
"license": "MIT",
"homepage": "https://github.com/tanstack/table#readme",