Skip to content
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

docs: fix Downshift example to work in TypeScript #1443

Closed
wants to merge 1 commit into from

Conversation

silviuaavram
Copy link
Collaborator

@silviuaavram silviuaavram commented Nov 23, 2022

What:
Fix the downshift example usage to work for TS as well.

Why:
Copy-paste of code should work.
Closes #1354.

How:
Add {refKey: ref} as first argument to getRootProps.
Maybe there can be a TS update for that property to be optional, but since it has been around for about 5 years and Downshift is replaced by useCombobox, digging into the matter is not something I'd want to do.

Checklist:

  • Documentation
  • Tests
  • TypeScript Types
  • Flow Types
  • Ready to be merged

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.

Readme code example doesn't work.
1 participant