Do not validate confirmation field when main field loses focus#1995
Conversation
|
Warning Rate limit exceeded@Crabcyborg has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 16 minutes and 49 seconds before requesting another review. How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. WalkthroughThe changes in this pull request enhance the validation logic within the Changes
Possibly related PRs
Suggested labels
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Crabcyborg
left a comment
There was a problem hiding this comment.
Thanks @truongwp and @garretlaxton for working on this!
I was noticing an issue with blank confirmation fields not blocking the form from submitting, but it was also happening on master.
This update makes that update more clear since you only ever see the errors for a split second and then the form submits and shows the error again with PHP now.
After merging that into this PR I don't see any other issues. This all works great now.
🚀
Fixes https://github.com/Strategy11/formidable-pro/issues/4733
Steps to replicate:
Validate this form with javascriptfor this form.(this happens with any fields support confirmation field)
Screen.Recording.2024-09-17.at.22.48.54.mov
After this fix:
The confirmation validation only triggers when submit form or when the value of the confirmation field changes and then loses focus.
Screen.Recording.2024-09-17.at.22.52.02.mov