Closed abdalla-rko closed 1 month ago
@abdalla-rko Can you make sure that this works fine with Chrome as well?
Hey @heath-freenome, It's working fine on Chrome on my end. Did I introduce any issues? If yes could you elaborate?
Hey @heath-freenome, It's working fine on Chrome on my end. Did I introduce any issues? If yes could you elaborate?
Nope, I just wanted to be sure. Thanks for checking.
Reasons for making this change
[Please describe them here]
The programmatic submit is not preventing the default form submission in Firefox. This is because the dispatched custom submit event is not the same event as the actual formSubmitEvent. Also the ref.current.formElement.current.requestSubmit() workaround doesn't work on Safari. This fixes the issue by preventing the default form submission.
bug #3121
Checklist
npm run test:update
to update snapshots, if needed.