Skip to content

fix(radio-group): remove stray v1 pressTheme prop that leaks to the DOM on web#4075

Open
sstur wants to merge 1 commit into
tamagui:mainfrom
sstur:fix/radio-group-presstheme
Open

fix(radio-group): remove stray v1 pressTheme prop that leaks to the DOM on web#4075
sstur wants to merge 1 commit into
tamagui:mainfrom
sstur:fix/radio-group-presstheme

Conversation

@sstur

@sstur sstur commented Jul 4, 2026

Copy link
Copy Markdown

Fixes #4074

pressTheme was a v1 prop that the v2 style system no longer consumes, but RadioGroupIndicatorFrame still sets it in its unstyled: false variant. Since nothing extracts it anymore, it passes through to the underlying element on web, putting a presstheme attribute on the DOM and logging a React unknown-prop console error the first time a radio option is selected (the Indicator only mounts once its item is checked).

This removes the line — v2 already applies press feedback via the Item's pressStyle, so there's no visual change. Verified with bun run build in code/ui/radio-group, and confirmed in an Expo SDK 57 / react-native-web app (via a pnpm patch of the published package) that the console error is gone and radio behavior is unchanged.

🤖 Generated with Claude Code

natew added a commit that referenced this pull request Jul 10, 2026
@natew natew mentioned this pull request Jul 10, 2026
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.

RadioGroup.Indicator leaks pressTheme to the DOM on web (v2) — React unknown-prop console error

1 participant