Skip to content

Conversation

emplums
Copy link

@emplums emplums commented Jan 6, 2021

This PR adds ref forwarding to SelectMenu.Filter and SelectMenu.Item

Closes #949

Screenshots

Merge checklist

  • Added or updated TypeScript definitions (index.d.ts) if necessary
  • Added/updated tests
  • Added/updated documentation
  • Tested in Chrome
  • Tested in Firefox
  • Tested in Safari
  • Tested in Edge

Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.

@vercel
Copy link

vercel bot commented Jan 6, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/primer/primer-components/ci5mfcrkb
✅ Preview: https://primer-components-git-select-menu-refs.primer.now.sh

@emplums emplums requested a review from colebemis January 6, 2021 19:05
@vercel vercel bot temporarily deployed to Preview January 6, 2021 19:07 Inactive
index.d.ts Outdated
interface SelectMenuItemCommonProps extends CommonProps {
selected?: boolean;
selected?: boolean
ref?: React.RefObject<HTMLAnchorElement> | React.RefObject<HTMLDivElement> | null
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of the time we expect people to use the default a tag on SelectMenu.Item, but in ✨ another project at GitHub ✨ folks are using the SelectMenu.Item as a button

@emplums emplums changed the base branch from main to major January 6, 2021 19:17
@emplums emplums merged commit b2220ce into major Jan 13, 2021
@emplums emplums deleted the select-menu-refs branch January 13, 2021 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

forwardRef on SelectMenu.Filter

2 participants