fix(workers): don't hijack card-wide taps on interactive children #27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/mobile-workspace-card-taps"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
On mobile, tapping anywhere in a workspace card opened the right-pane file explorer for the workspace scope — including taps that landed on the inner Start/Stop/Logs/Remove buttons (which had
stopPropagation) and especially the session-name input + agent-teams checkbox (which did not). Once scope was set,.left-panegotdisplay: nonevia.mobile-hiddenand the user's tap target vanished mid-action.Guard the card tap by walking up from
event.target: if the click landed on abutton,input,textarea,select,label,a, or[contenteditable="true"], let that child handle it and skip scope selection. Card-wide tap still works on the title / meta / status area.Test plan
pnpm lint— clean (verified on a sibling branch carrying the same change)pnpm typecheck— cleanpnpm test— 474/474 passing