Skip to content

Fix Conditional Tabs On Mobile#416

Merged
PauloMFJ merged 3 commits into
datacommonsorg:mainfrom
madebypxlp:paulo/fix-conditional-tabs-mobile
Jul 22, 2026
Merged

Fix Conditional Tabs On Mobile#416
PauloMFJ merged 3 commits into
datacommonsorg:mainfrom
madebypxlp:paulo/fix-conditional-tabs-mobile

Conversation

@PauloMFJ

Copy link
Copy Markdown
Contributor

Ticket

image

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request addresses issues where touch events on the ConditionalTabs component are swallowed by tldraw gesture handlers. It introduces a touchstart event listener to stop propagation on the tablist container and adds an onPointerUp handler to handle touch events. The review feedback points out that triggering onActiveIndexChange in both onPointerUp and onClick can cause double-triggering on mobile devices. It suggests stopping propagation on onPointerUp instead to allow standard onClick to fire reliably.

Comment thread dataweaver/apps/web/src/components/elements/card/chart/conditional_tabs.tsx Outdated
@PauloMFJ PauloMFJ self-assigned this Jul 21, 2026
…onal_tabs.tsx

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

@beets beets left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@PauloMFJ
PauloMFJ merged commit 913d8fa into datacommonsorg:main Jul 22, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants