fix(client): give the context menu a menu role, wrap the tour filter callback

This commit is contained in:
Maurice
2026-10-07 20:35:15 +02:00
parent bd8e1a287b
commit f64f9e58de
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ export function ContextMenu({ menu, onClose }: ContextMenuProps) {
if (!menu) return null
return createPortal(
<div ref={ref} onKeyDown={moveFocus} className="trek-popover-enter" style={{
<div ref={ref} role="menu" tabIndex={-1} onKeyDown={moveFocus} className="trek-popover-enter" style={{
position: 'fixed', left: menu.x, top: menu.y, zIndex: 999999,
background: 'var(--bg-card)', borderRadius: 10, padding: '4px',
border: '1px solid var(--border-primary)',
@@ -158,7 +158,7 @@ export default function MPlacesBrowser({ planner, shell }: MPlacesBrowserProps)
shell.openSheet('bract', { placeId: place.id, dayPicker: false })
}
const selectedTours = [...selectedIds].filter(planner.isTourPlace)
const selectedTours = [...selectedIds].filter(id => planner.isTourPlace(id))
const panelFilterCount = countActivePlacesFilters({ filter: 'all', categoryFilters, ratingFilter })
return (