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