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

tabIndex does not exist as a prop on Icon component (typescript issue only) #3640

Open
srmcconomy opened this issue Jul 2, 2019 · 0 comments

Comments

@srmcconomy
Copy link

srmcconomy commented Jul 2, 2019

Environment

  • Package version(s): 3.15.1
  • Browser and OS versions: N/A

If possible, link to a minimal repro (fork this code sandbox): https://codesandbox.io/s/gggeq

Steps to reproduce

  1. create an Icon component with a tabIndex prop

Actual behavior

typescript throws an error: "Property 'tabIndex' does not exist on type..."
app behaviour is fine though

Expected behavior

typescript does not throw an error

Possible solution

Maybe Icon needs a type parameter that defaults to HTMLSpanElement

@srmcconomy srmcconomy changed the title tabIndex does not exist as a prop on Icon component (typescrip issue only) tabIndex does not exist as a prop on Icon component (typescript issue only) Jul 2, 2019
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

No branches or pull requests

1 participant