mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
fix(client): give the context menu a menu role, wrap the tour filter callback
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user