fix incorrect focus when reopening search detail dialog on video tab

This commit is contained in:
Josh Hawkins 2025-05-07 15:52:45 -05:00
parent 68ef0b88fb
commit cfe819df77

View File

@ -1234,6 +1234,8 @@ export function VideoTab({ search }: VideoTabProps) {
const source = `${baseUrl}vod/${search.camera}/start/${search.start_time}/end/${endTime}/index.m3u8`;
return (
<>
<span tabIndex={0} className="sr-only" />
<GenericVideoPlayer source={source}>
{reviewItem && (
<div
@ -1284,5 +1286,6 @@ export function VideoTab({ search }: VideoTabProps) {
</div>
)}
</GenericVideoPlayer>
</>
);
}