fix textareas not accepting enter on pages with autocomplete fields w. strict mode#337
fix textareas not accepting enter on pages with autocomplete fields w. strict mode#337
Conversation
|
@CodeRabbit full review |
✅ Actions performedFull review triggered. |
|
Caution Review failedThe pull request is closed. WalkthroughAdds a keypress handler to several JSF forms, refines the base template’s Enter-key logic to allow Enter in textareas, and introduces a validation check in a PrimeFaces override to throw an error when a nested array is passed to SelectManyCheckbox.setValue. Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant F as JSF h:form
participant H as autoCompleteForceSelectionPreventFormSubmission
U->>F: Keypress (Enter/other)
F->>H: Invoke handler
alt Enter in textarea
H-->>F: allow (true)
F-->>U: Insert newline / continue typing
else Enter in non-textarea
H-->>F: prevent (false)
F-->>U: Block form submission
end
sequenceDiagram
participant App as App Code
participant PF as PrimeFaces SelectManyCheckbox.setValue
App->>PF: setValue(value[])
loop for each element
alt element is Array
PF-->>App: throw Error("value element is an array")
else element is scalar
PF-->>App: proceed with matching/checking
end
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: CodeRabbit UI 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (7)
✨ Finishing Touches
🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit