diff --git a/search-parts/src/components/DetailsListComponent.tsx b/search-parts/src/components/DetailsListComponent.tsx index 48f233de..b8204d35 100644 --- a/search-parts/src/components/DetailsListComponent.tsx +++ b/search-parts/src/components/DetailsListComponent.tsx @@ -430,13 +430,6 @@ export class DetailsListComponent extends React.Component<IDetailsListComponentP const { columns, items } = this.state; - let focusIndex = -1; - if (this.props.selectedKeys && this.props.selectedKeys.length > 0) { - const key = this.props.selectedKeys[0]; - focusIndex = items.findIndex(item => item.key == key); - } - - let shimmeredDetailsListProps: IShimmeredDetailsListProps = { theme: this.props.themeVariant as ITheme, items: items, @@ -446,7 +439,6 @@ export class DetailsListComponent extends React.Component<IDetailsListComponentP selection: this._selection, layoutMode: DetailsListLayoutMode.justified, isHeaderVisible: true, - initialFocusedIndex: focusIndex, enableShimmer: this.props.showShimmers, selectionPreservedOnEmptyClick: true, enterModalSelectionOnTouch: true,