You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to use the onFollow event for the top navigation link to avoid refreshing the full page but it's doesn't allow me to.
I think something must be wrong from typescript?
It looks like you have a small typo in your code. When setting the onFollow property in TopNavigation you need to use : instead of = because you are passing an object:
<TopNavigationidentity={{href: "/",title: "My Website",onFollow: (event)=>{/* ... */}}}/>
Browser
No response
Package version
3.0.13
React version
18.1.0
Description
I'd like to use the onFollow event for the top navigation link to avoid refreshing the full page but it's doesn't allow me to.
I think something must be wrong from typescript?
Source code
No response
Reproduction
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: