Implement controlled inputs with useController for autofill detection#123
Implement controlled inputs with useController for autofill detection#123codegen-sh[bot] wants to merge 2 commits into
Conversation
|
|
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ 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 (
|
|
🔍 Check Suite Status for PR #123
Results & Findingstest: ✅ Fixed the failing checks in [this commit](9d145881... |
…mix-hook-form The useController function is not exported from remix-hook-form, so we need to import it directly from react-hook-form to fix the build error.
|
📝 Storybook Preview: View Storybook This preview will be updated automatically when you push new changes to this PR.
|
Overview
This PR implements a technique for detecting browser autofill using controlled inputs with React Hook Form's useController. This approach provides enhanced control over input behavior and allows for reliable autofill detection.
Implementation
useAutofillControlledInputhook that:Technical Details
This approach works by:
Testing
To test this implementation:
yarn storybookRelated Issues
Addresses subissue 360T-610: Implement controlled inputs with useController for autofill detection
Part of parent issue 360T-602: Explore adding autofill management to form library
💻 View my work • 👤 Initiated by
Jake Ruesink• About Codegen⛔ Remove Codegen from PR • 🚫 Ban action checks