fix(trace): update snapshot on keyboard selection (#21169)

This commit is contained in:
Pavel Feldman 2023-02-23 14:40:07 -08:00 committed by GitHub
parent 8ccc02a9d3
commit d3e4fc6343
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,6 +77,7 @@ export const ListView: React.FC<ListViewProps> = ({
} }
const element = itemListRef.current?.children.item(newIndex); const element = itemListRef.current?.children.item(newIndex);
scrollIntoViewIfNeeded(element); scrollIntoViewIfNeeded(element);
onHighlighted?.(undefined);
onSelected?.(items[newIndex]); onSelected?.(items[newIndex]);
}} }}
ref={itemListRef} ref={itemListRef}