-
Notifications
You must be signed in to change notification settings - Fork 3
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
fix(emoji-picker): DP-102475 fix keyboard navigation #389
Conversation
Please add either the |
3ccd624
to
8b8e90c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to work nicely thanks!
✔️ Deploy previews ready! |
# [9.51.0](dialtone/v9.50.0...dialtone/v9.51.0) (2024-07-01) ### Bug Fixes * **Badge:** DP-102533 mention only color ([#386](#386)) ([b6dc77d](b6dc77d)) * **Emoji Picker:** DP-102475 fix keyboard navigation ([#389](#389)) ([6ca1d16](6ca1d16)) * **Expressive Theme:** NO-JIRA corrected figma and tokens studio connection ([#384](#384)) ([255936f](255936f)) * **Logo:** DLT-1833 corrected antialiased edging ([#381](#381)) ([67322e6](67322e6)) ### Documentation * DLT-1765 update favicon to Ai logomark ([#378](#378)) ([59ff0a4](59ff0a4)) * DLT-1791 move storybook to doc site - Avatar to ButtonGroup ([#380](#380)) ([b754575](b754575)) * DLT-1792 move storybook to doc site - Card to Combobox ([#383](#383)) ([56fbb43](56fbb43)) * **Prototypes:** DLT-1740 left bar prototype - vue 2 ([#385](#385)) ([689af1b](689af1b)) * **Prototypes:** DLT-1740 left bar prototype ([#368](#368)) ([b0e3c9a](b0e3c9a)) ### Features * **Icon:** DLT-1712 add token icon ([#388](#388)) ([66d2474](66d2474)) * **Popover:** DLT-1826 appendTo root ([#379](#379)) ([4d2c54d](4d2c54d)) * **Popover:** DLT-1826 appendTo root ([#382](#382)) ([35480c5](35480c5))
# [4.22.0](dialtone-icons/v4.21.0...dialtone-icons/v4.22.0) (2024-07-01) ### Bug Fixes * **Emoji Picker:** DP-102475 fix keyboard navigation ([#389](#389)) ([6ca1d16](6ca1d16)) * **Logo:** DLT-1833 corrected antialiased edging ([#381](#381)) ([67322e6](67322e6)) ### Features * **Icon:** DLT-1712 add token icon ([#388](#388)) ([66d2474](66d2474))
# [2.140.0](dialtone-vue2/v2.139.2...dialtone-vue2/v2.140.0) (2024-07-01) ### Bug Fixes * **Badge:** DP-102533 mention only color ([#386](#386)) ([b6dc77d](b6dc77d)) * **Emoji Picker:** DP-102475 fix keyboard navigation ([#389](#389)) ([6ca1d16](6ca1d16)) ### Documentation * DLT-1764 update to new Dialpad logo in doc site header ([#377](#377)) ([6536125](6536125)) * DLT-1765 update favicon to Ai logomark ([#378](#378)) ([59ff0a4](59ff0a4)) * DLT-1791 move storybook to doc site - Avatar to ButtonGroup ([#380](#380)) ([b754575](b754575)) * DLT-1792 move storybook to doc site - Card to Combobox ([#383](#383)) ([56fbb43](56fbb43)) * **Input:** DLT-1782 add search input example ([#376](#376)) ([a6b6416](a6b6416)) * **Prototypes:** DLT-1740 left bar prototype - vue 2 ([#385](#385)) ([689af1b](689af1b)) ### Features * **Popover:** DLT-1826 appendTo root ([#379](#379)) ([4d2c54d](4d2c54d)) * **Popover:** DLT-1826 appendTo root ([#382](#382)) ([35480c5](35480c5))
# [3.133.0](dialtone-vue3/v3.132.2...dialtone-vue3/v3.133.0) (2024-07-01) ### Bug Fixes * **Badge:** DP-102533 mention only color ([#386](#386)) ([b6dc77d](b6dc77d)) * **Emoji Picker:** DP-102475 fix keyboard navigation ([#389](#389)) ([6ca1d16](6ca1d16)) ### Documentation * DLT-1764 update to new Dialpad logo in doc site header ([#377](#377)) ([6536125](6536125)) * DLT-1765 update favicon to Ai logomark ([#378](#378)) ([59ff0a4](59ff0a4)) * DLT-1791 move storybook to doc site - Avatar to ButtonGroup ([#380](#380)) ([b754575](b754575)) * DLT-1792 move storybook to doc site - Card to Combobox ([#383](#383)) ([56fbb43](56fbb43)) * **Input:** DLT-1782 add search input example ([#376](#376)) ([a6b6416](a6b6416)) * **Prototypes:** DLT-1740 left bar prototype - vue 2 ([#385](#385)) ([689af1b](689af1b)) * **Prototypes:** DLT-1740 left bar prototype ([#368](#368)) ([b0e3c9a](b0e3c9a)) ### Features * **Popover:** DLT-1826 appendTo root ([#382](#382)) ([35480c5](35480c5))
Fix Emoji Picker keyboard navigation when there is no search input
Obligatory GIF (super important!)
🛠️ Type Of Change
These types will increment the version number on release:
These types will not increment the version number, but will still deploy to documentation site on release:
📖 Jira Ticket
DP-102475
📖 Description
When the prop
showSearch
is false, hitting tab from the emoji tab set would fail with the errorCannot read properties of undefined (reading 'focusSearchInput')
because the ref to the search input was not there.To solve this, I changed the emitted event from
'focus-search-input'
to'tab-key-pressed'
so that the parent component can handle the event and decide to which section should the focus move.📝 Checklist
For all PRs:
For all Vue changes:
./scripts/dialtone-vue-sync.sh
script. Read docs here: Dialtone Vue Sync Script📷 Screenshots / GIFs
Remember that to reproduce this you must set
showSearch
to false.Before
Now
Next Steps
Add changes to Vue 3 once approved