Skip to content

Commit 603c34d

Browse files
authored
Add 'string' type to union of container types for AutoScrollOption (#928)
autoScroll can already use css selectors to find appropriate container element, but TypeScript doesn't know about it and throws a compilation error. This fixes that.
1 parent 51ec5e5 commit 603c34d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@interactjs/auto-scroll/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ declare module '@interactjs/core/options' {
2727
}
2828

2929
export interface AutoScrollOptions {
30-
container?: Window | HTMLElement
30+
container?: Window | HTMLElement | string;
3131
margin?: number
3232
distance?: number
3333
interval?: number

0 commit comments

Comments
 (0)