-
Notifications
You must be signed in to change notification settings - Fork 1
feat(core): Add keyboard and focus events to form components #636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for pine-design-system ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
@coderabbitai review this pr |
|
✅ Actions performedReview triggered.
|
📝 WalkthroughWalkthroughThis pull request adds new keyboard and focus event listeners across three form components. PdsInput, PdsSelect, and PdsTextarea components now emit a 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧹 Recent nitpick comments
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (10)
🧰 Additional context used🧬 Code graph analysis (6)libs/core/src/components/pds-input/pds-input.tsx (2)
libs/core/src/components/pds-select/pds-select.tsx (3)
libs/core/src/components/pds-textarea/pds-textarea.tsx (2)
libs/core/src/components/pds-input/test/pds-input.spec.tsx (1)
libs/core/src/components/pds-textarea/test/pds-textarea.spec.tsx (1)
libs/core/src/components/pds-select/test/pds-select.spec.tsx (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (18)
✏️ Tip: You can disable this entire section by setting 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. Comment |
Description
Pine form components use Shadow DOM, which means native DOM events like blur, focus, and keydown don't reliably bubble across the shadow boundary to external JavaScript frameworks (e.g., Stimulus, React event delegation).
While pds-input and pds-textarea already had pdsBlur and pdsFocus, they were missing pdsKeyDown. The pds-select component was missing all three. This caused issues in consuming applications where:
Fixes DSS-74
Type of change
How Has This Been Tested?
Can be tested by testing a consuming stimulus form that filters a list
Test Configuration:
Checklist:
If not applicable, leave options unchecked.