-
Notifications
You must be signed in to change notification settings - Fork 33
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(Anchor): allow rel property in TS #1849
Conversation
fcb6423
to
4d3c790
Compare
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit dc06c80:
|
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.
That's interesting 🤔 we may actually switch over to use ComponentPropsWithoutRef
. It sounds easier to use/read than HTMLProps etc.
Do you found the commit that made the change (from prev version) by the way? |
#1715 and the change https://github.com/dnbexperience/eufemia/pull/1715/files#diff-69edde89b21515b1a726d1403a98b761a9f6aeb488366bb84ea5ef565102c47aR36, I think. |
✅ DNB Eufemia Portal deploy preview ready
|
4d3c790
to
dc06c80
Compare
## [9.45.1](v9.45.0...v9.45.1) (2023-01-04) ### Bug Fixes * **Anchor:** allow rel property in TS ([#1849](#1849)) ([e3b1be1](e3b1be1))
🎉 This PR is included in version 9.45.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Seems like
HTMLProps
includes more props thanHTMLAttributes
,rel
being one of them.Or maybe we should use
React.ComponentPropsWithoutRef<"a">
? 🤔https://github.com/typescript-cheatsheets/react/blob/main/docs/advanced/patterns_by_usecase.md#componentprops