Team Task Board
Submitted review
7 comments across 1 file
- Line 45
The task count is not a unique ID. Delete any task except the last one, then add a task: the new ID can duplicate a remaining card’s ID. Menu actions use that ID, so moving or deleting one card can affect both. Keep a separate increasing ID or derive one above the current maximum.
- Line 92
The overflow trigger is a div with only a click handler. Keyboard users cannot tab to it or open it with Enter/Space, and assistive technology gets no button name or expanded state. Render a labeled button and expose whether its menu is open.
- Line 111
The Move and Delete choices are also divs, so even if someone could open the menu with a keyboard, they could not tab to or activate an action. Use real buttons for these choices (or implement complete menu keyboard behavior) so Enter and Space work and the actions are announced.
- Line 159
Clicking outside a card menu sets openMenuCardId to null but leaves the menu in the DOM. It stays visible and its Move/Delete actions still work, so the menu never actually dismisses until another render. Re-render or remove the menu here.
Comments
0 comments
No comments yet
Start the discussion for this solution.