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
<ahref="#how-to-resolve-the-problem" router-ignore="true" vaadin-router-ignore="true">How to resolve the problem</a><h1id="how-to-resolve-the-problem" >How to resolve the problem</h1>
The problem is that when a user clicks the anchor link vaadin navigates back to the home page rather than simply scrolling down the page to the h1 tag.
I refer you to this issue where the feature was discussed.
You can see from the conversation that original intent was for the attribute to be called 'vaadin-router-ignore' but was ultimately renamed 'router-ignore'.
In tracing through the client side code I see the click event passing through a couple key pieces of code:
click.js line: 72
this function triggers as expected and the vaadinRouterGlobalClickHandler returns.
// ignore the click if the <a> element has the 'router-ignore' attributeif(anchor.hasAttribute('router-ignore')){return;}
When the call to vaadinRouterGlobalClickHandler returns we then see vaadinRouterGlobalPopstateHandler being called
Note that this refers to the name 'vaadin-router-ignore'.
At this point the event.state is null so I'm not certain whether this is meant to be part of the 'a' tag processing so I wonder if there are two bugs here, 1) the incorrect usage of vaadin-router-ignore and the fact that vaadinRouterGlobalPopstateHandler is called after vaadinRouterGlobalClickHandler returns.
The text was updated successfully, but these errors were encountered:
vaadin 23.2.0
I've been having an issue with html tag anchor with a
in-page
link not working in raw html sent to the browser.I've raised a stackoverflow issue thinking that I was doing something wrong but I now think it might be a bug.
https://stackoverflow.com/questions/74634530
The problem is that when a user clicks the anchor link vaadin navigates back to the home page rather than simply scrolling down the page to the h1 tag.
I refer you to this issue where the feature was discussed.
#421
You can see from the conversation that original intent was for the attribute to be called 'vaadin-router-ignore' but was ultimately renamed 'router-ignore'.
In tracing through the client side code I see the click event passing through a couple key pieces of code:
this function triggers as expected and the vaadinRouterGlobalClickHandler returns.
When the call to vaadinRouterGlobalClickHandler returns we then see vaadinRouterGlobalPopstateHandler being called
Note that this refers to the name 'vaadin-router-ignore'.
At this point the event.state is null so I'm not certain whether this is meant to be part of the 'a' tag processing so I wonder if there are two bugs here, 1) the incorrect usage of
vaadin-router-ignore
and the fact thatvaadinRouterGlobalPopstateHandler
is called after vaadinRouterGlobalClickHandler returns.The text was updated successfully, but these errors were encountered: