Skip to content

Commit 32f9090

Browse files
committed
Added an key to the DetailsList control in order to solve a selection reset bug
1 parent 4264f0a commit 32f9090

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/controls/listView/ListView.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,8 @@ export class ListView extends React.Component<IListViewProps, IListViewState> {
335335
selectionMode={this.props.selectionMode || SelectionMode.none}
336336
selection={this._selection}
337337
layoutMode={DetailsListLayoutMode.justified}
338-
compact={this.props.compact} />
338+
compact={this.props.compact}
339+
setKey="ListViewControl" />
339340
</div>
340341
);
341342
}

0 commit comments

Comments
 (0)