Skip to content
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

fix: FormSubmit not capturing event issue #174

Merged
merged 1 commit into from
Sep 16, 2023

Conversation

JDMathew
Copy link
Collaborator

This PR fixes the issue that if FormSubmit wraps any children with a event like Pressable or Touchable Opacity then FormSubmit will not trigger the onPress={submitForm}.

I have added pointerEvents before the {...props} spread to allow consumers to overwrite this behaviour. Even though this would defeat the purpose of the Component

@vercel
Copy link

vercel bot commented Sep 16, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
react-native-ama ✅ Ready (Inspect) Visit Preview Sep 16, 2023 1:01am

@JDMathew JDMathew self-assigned this Sep 16, 2023
@JDMathew JDMathew linked an issue Sep 16, 2023 that may be closed by this pull request
@JDMathew JDMathew merged commit b9bde8e into split-ama Sep 16, 2023
1 of 2 checks passed
@JDMathew JDMathew deleted the fix/form-submit-capture-event branch September 16, 2023 01:05
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.

fix: issue with FormSubmit not capturing event
1 participant