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);
scrollIntoViewIfNeeded(element);
onHighlighted?.(undefined);
onSelected?.(items[newIndex]);
}}
ref={itemListRef}