Skip to content

Commit f78e7eb

Browse files
fix: Gallery types
1 parent 1f50a25 commit f78e7eb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/@primereact/headless/src/gallery/item/useGalleryItem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ export const useGalleryItem = withHeadless({
533533
};
534534

535535
const itemProps = {
536-
ref: elementRef,
536+
ref: elementRef as React.RefObject<HTMLDivElement>,
537537
'data-scope': 'gallery' as const,
538538
'data-part': 'item' as const,
539539
'data-index': index,

packages/@primereact/headless/src/gallery/useGallery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export const useGallery = withHeadless({
143143
};
144144

145145
const rootProps = {
146-
ref: elementRef,
146+
ref: elementRef as React.RefObject<HTMLDivElement>,
147147
id,
148148
'data-scope': 'gallery' as const,
149149
'data-part': 'root' as const,

0 commit comments

Comments
 (0)