Fix pro issue 5819 / focus first input in option container with error#2375
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2375 +/- ##
============================================
+ Coverage 27.58% 27.62% +0.04%
- Complexity 8647 8663 +16
============================================
Files 140 140
Lines 28555 28596 +41
============================================
+ Hits 7876 7901 +25
- Misses 20679 20695 +16 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
WalkthroughA new conditional branch is introduced in the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Form
participant ErrorHandler
User->>Form: Submit form
Form->>ErrorHandler: checkForErrorsAndMaybeSetFocus()
ErrorHandler->>Form: Iterate through error elements
alt Element is .frm_opt_container
ErrorHandler->>Form: Find first input in container
ErrorHandler->>Form: Call focusInput on input
else Other element types
ErrorHandler->>Form: Existing focus logic
end
Possibly related PRs
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (9)
🔇 Additional comments (1)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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 (
|
Fixes https://github.com/Strategy11/formidable-pro/issues/5819
Pre-release
formidable-6.21.2b.zip