[Button] "as" prop has incorrect type in rc2
See original GitHub issueDescribe the bug
This code:
<Button
as="a"
target="_blank"
>...</Button>
Gives the following TypeScript error:
Additional context Chakra: 1.0.0-rc2 TypeScript: 3.9.7
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (5 by maintainers)
Top Results From Across the Web
ButtonProps from the package is incompatible with Button ...
I'd consider this a bug in the @types/reactstrap type declarations. Notice that the same error occurs in the following simpler test case:
Read more >ASP.NET Core updates in .NET 6 Release Candidate 2
The analyzer will verify middleware ordering for WebApplicationBuilder and warn you when an incorrect middleware configuration or order is ...
Read more >Typechecking With PropTypes - React
In this example, we're using PropTypes.string . When an invalid value is provided for a prop, a warning will be shown in the...
Read more >Warning: Each Child in a List Should Have a Unique 'key' Prop
Then React will get confused and re-render the incorrect element. Keys do not have to be unique globally. They just need to be...
Read more >X-Plane 12.00 Release Notes
XPD-13607 – From Bug Report: Alia 250 Pitot Button not a toggle on/off . Release candidate 5. Scenery update: Recut global scenery is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @with-heart for your prompt response and tip
@ralphilius I’ll check with Segun and try to release it today if we’re in a good place.
You could always annotate issues like this with
@ts-expect-error
so that when they’re fixed, ts will let you know that it’s no longer throwing an error.