-
Notifications
You must be signed in to change notification settings - Fork 77
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(combobox): listbox item focused with home or end now scrolls into view #4304
fix(combobox): listbox item focused with home or end now scrolls into view #4304
Conversation
…irst/last-item-into-focus-scroll-into-view
…age to the very top, End scrolls to bottom
…irst/last-item-into-focus-scroll-into-view
…tbox to be consistent Dropdown behavior
…irst/last-item-into-focus-scroll-into-view
…irst/last-item-into-focus-scroll-into-view
…irst/last-item-into-focus-scroll-into-view
…irst/last-item-into-focus-scroll-into-view
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.
Looking good!
…ptive per comments
…irst/last-item-into-focus-scroll-into-view
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.
Aside from a few comments, this LGTM! 🎉
@@ -514,7 +516,7 @@ describe("calcite-combobox", () => { | |||
await page.waitForChanges(); | |||
expect(await page.evaluate(() => document.activeElement.id)).toBe("myCombobox"); | |||
|
|||
await page.keyboard.press("ArrowDown"); | |||
await page.keyboard.press("Space"); |
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.
Do we also need a test for ArrowDown
opening the menu?
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.
💡 There is a test below this one that does that.
…irst/last-item-into-focus-scroll-into-view
Related Issue: #4265
Summary
This discussion prompted several changes for Combobox to be consistent with the Dropdown behavior:
Includes adjustments to related failing tests.