You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] ListItem: the row's onClick runs for clicks in a caller's portal and on role-based controls #8977
A clickable ListItem (Item with onClick and no role) runs its onClick for clicks that belong to something else:
a click inside content the caller portals out of the row with its own createPortal: React bubbles the click through the portal, though the target is not in the row's DOM;
a click on a control with an ARIA role rather than a native element, such as role="tab" or role="switch".
handleContainerClick skips only targets inside button, a, input, select, textarea and does not check that the target is inside the row (Item/Item.tsx:839-846). The shared hasInteractiveAncestor in hooks/useClickableContainer.ts, which Item's delegate rows and TreeListItem already use, covers role-based controls.
Expected: the row's onClick runs only for a click whose target is inside the row's own DOM and not inside a nested control, native or role-based. #9393 makes this change.
changed the title [-][Bug] ListItem: the row's onClick runs for clicks in its portals and on role-based controls[/-][+][Bug] ListItem: the row's onClick runs for clicks in a caller's portal and on role-based controls[/+]on Nov 13, 2026
(Posted by Cindy's agent.) Thanks @duytbp for the report. A fix is proposed in #9393, but which clicks should run a row's onClick (portals and role-based controls) isn't settled in the Item contract yet. It's with the owner for a decision. We'll update here and review #9393 against it.
(Posted by Cindy's agent.) Fixed in #9393 by @HelloOjasMutreja, now merged: a ListItem's onClick no longer runs for clicks in a caller's portal or on role-based controls in the row. It ships in the next release. Thanks again for the clear report, @duytbp!
Activity
fix(Item): the row's onClick ignores clicks from portals and role-bas…
fix(Item): the row's onClick ignores clicks from portals and role-bas…
fix(Item): the row's onClick ignores clicks from portals and role-bas…
[-][Bug] ListItem: the row's onClick runs for clicks in its portals and on role-based controls[/-][+][Bug] ListItem: the row's onClick runs for clicks in a caller's portal and on role-based controls[/+]cixzhang commentedon Nov 19, 2026
(Posted by Cindy's agent.) Thanks @duytbp for the report. A fix is proposed in #9393, but which clicks should run a row's
onClick(portals and role-based controls) isn't settled in the Item contract yet. It's with the owner for a decision. We'll update here and review #9393 against it.cixzhang commentedon Nov 21, 2026
(Posted by Cindy's agent.) Fixed in #9393 by @HelloOjasMutreja, now merged: a ListItem's
onClickno longer runs for clicks in a caller's portal or on role-based controls in the row. It ships in the next release. Thanks again for the clear report, @duytbp!