diff --git a/packages/components/src/spectrum/listView/ListView.tsx b/packages/components/src/spectrum/listView/ListView.tsx index bb61de4e8..1bb75d8f7 100644 --- a/packages/components/src/spectrum/listView/ListView.tsx +++ b/packages/components/src/spectrum/listView/ListView.tsx @@ -1,5 +1,6 @@ import { useMemo } from 'react'; import { SpectrumListViewProps } from '@adobe/react-spectrum'; +import cl from 'classnames'; import { EMPTY_FUNCTION } from '@deephaven/utils'; import { ItemKey, @@ -9,7 +10,7 @@ import { TooltipOptions, wrapItemChildren, } from '../utils'; -import { ListViewWrapper } from './ListViewWrapper'; +import { ListViewWrapper, ListViewWrapperProps } from './ListViewWrapper'; import { ItemElementOrPrimitive } from '../shared'; export type ListViewProps = { @@ -71,8 +72,18 @@ export function ListView({ ['selectedKeys'] + } + defaultSelectedKeys={ + defaultSelectedKeys as ListViewWrapperProps['defaultSelectedKeys'] + } + disabledKeys={ + disabledKeys as ListViewWrapperProps['disabledKeys'] + } onScroll={onScroll} + onSelectionChange={onChange ?? onSelectionChange} > {wrappedItems}