Skip to content

Commit 2f2fbf4

Browse files
authored
[core] Fix broken types on master (#1928)
1 parent 828cb97 commit 2f2fbf4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/react/src/scroll-area/root/ScrollAreaRoot.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client';
22
import * as React from 'react';
3-
import type { BaseUIComponentProps, GenericHTMLProps } from '../../utils/types';
3+
import type { BaseUIComponentProps, HTMLProps } from '../../utils/types';
44
import { ScrollAreaRootContext } from './ScrollAreaRootContext';
55
import { useRenderElement } from '../../utils/useRenderElement';
66
import { ScrollAreaRootCssVars } from './ScrollAreaRootCssVars';
@@ -183,7 +183,7 @@ export const ScrollAreaRoot = React.forwardRef(function ScrollAreaRoot(
183183
}
184184
}
185185

186-
const props: GenericHTMLProps = {
186+
const props: HTMLProps = {
187187
role: 'presentation',
188188
onPointerEnter: handlePointerEnterOrMove,
189189
onPointerMove: handlePointerEnterOrMove,

packages/react/src/scroll-area/scrollbar/ScrollAreaScrollbar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client';
22
import * as React from 'react';
3-
import type { BaseUIComponentProps, GenericHTMLProps } from '../../utils/types';
3+
import type { BaseUIComponentProps, HTMLProps } from '../../utils/types';
44
import { useScrollAreaRootContext } from '../root/ScrollAreaRootContext';
55
import { ScrollAreaScrollbarContext } from './ScrollAreaScrollbarContext';
66
import { useRenderElement } from '../../utils/useRenderElement';
@@ -108,7 +108,7 @@ export const ScrollAreaScrollbar = React.forwardRef(function ScrollAreaScrollbar
108108
};
109109
}, [orientation, scrollbarXRef, scrollbarYRef, viewportRef]);
110110

111-
const props: GenericHTMLProps = {
111+
const props: HTMLProps = {
112112
...(rootId && { 'data-id': `${rootId}-scrollbar` }),
113113
onPointerDown(event) {
114114
// Ignore clicks on thumb

0 commit comments

Comments
 (0)