-
-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onPress
not executed the first time when pressing a Tabs.Tab
#2553
Comments
DiagnosisLooks like the Potential ResolutionCould try to adjust the event handling logic to ensure the tab change is triggered on the initial click regardless of the focus state.
Notes
|
Current Behavior
When I pass an
onPress
handler for aTabs.Tab
, on native it works correctly, but on web I have to press the tab twice before my handler is executed. This applies to each tab in the tabs list. Starting with the second press, the handler is subsequently executed properly.Expected Behavior
No response
Tamagui Version
Platform (Web, iOS, Android)
Reproduction
<Tabs.Tab onPress={() => { alert("Pressed") }} > // ... </Tabs.Tab>
The text was updated successfully, but these errors were encountered: