Skip to content

Commit ff1dc03

Browse files
authored
fix: error and warning in mobile (#2475)
1 parent b46e178 commit ff1dc03

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

apps/renderer/src/modules/entry-column/list.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ export const EntryList: FC<EntryListProps> = memo(
233233
ref={rowVirtualizer.measureElement}
234234
className="absolute left-0 top-0 w-full will-change-transform"
235235
key={virtualRow.key}
236+
data-index={virtualRow.index}
236237
style={{
237238
transform,
238239
}}

packages/components/src/ui/sheet/Sheet.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ export const PresentSheet = forwardRef<SheetRef, PropsWithChildren<PresentSheetP
110110
style={{
111111
zIndex: contentZIndex,
112112
}}
113+
aria-describedby={undefined}
113114
className={cn(
114115
"fixed inset-x-0 bottom-0 flex max-h-[calc(100svh-3rem)] flex-col rounded-t-[10px] border-t bg-theme-modal-background-opaque pt-4",
115116
modalClassName,

packages/components/src/utils/selector.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ export function withResponsiveSyncComponent<P extends object, R = any>(
2626
) {
2727
return forwardRef<R, P>(function ResponsiveLayout(props: PropsWithoutRef<P>, ref) {
2828
const isMobile = useMobile()
29-
const componentProps = { ...props, ref } as P & RefAttributes<R>
29+
const componentProps = { ...props } as P & RefAttributes<R>
3030

3131
return isMobile ? (
3232
<MobileComponent {...componentProps} />
3333
) : (
34-
<DesktopComponent {...componentProps} />
34+
<DesktopComponent {...componentProps} ref={ref} />
3535
)
3636
})
3737
}

0 commit comments

Comments
 (0)