Prevent ptz keyboard shortcuts from reopening presets menu (#12079)

This commit is contained in:
Josh Hawkins 2024-06-20 07:24:50 -06:00 committed by GitHub
parent 9f81ce2876
commit a60ffe06ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -626,7 +626,10 @@ function PtzControlPanel({
<BsThreeDotsVertical />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent className="scrollbar-container max-h-[40dvh] overflow-y-auto">
<DropdownMenuContent
className="scrollbar-container max-h-[40dvh] overflow-y-auto"
onCloseAutoFocus={(e) => e.preventDefault()}
>
{ptz?.presets.map((preset) => {
return (
<DropdownMenuItem