Skip to content

Commit 54d771a

Browse files
authored
fix(virtual-core): add 'instant' to ScrollBehavior type (#1122)
1 parent c4da5cb commit 54d771a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tanstack/virtual-core': patch
3+
---
4+
5+
Add 'instant' to ScrollBehavior type to match the W3C spec

packages/virtual-core/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ type ScrollDirection = 'forward' | 'backward'
88

99
type ScrollAlignment = 'start' | 'center' | 'end' | 'auto'
1010

11-
type ScrollBehavior = 'auto' | 'smooth'
11+
type ScrollBehavior = 'auto' | 'smooth' | 'instant'
1212

1313
export interface ScrollToOptions {
1414
align?: ScrollAlignment

0 commit comments

Comments
 (0)