Skip to content

Commit

Permalink
reset fromAnchor for navigation
Browse files Browse the repository at this point in the history
This in case the flag has
for some reason not been
reset after a click.
  • Loading branch information
caalador committed Sep 19, 2024
1 parent f0ef456 commit c6b1c50
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ function Flow() {
const vaadinNavigateEventHandler = useCallback((event: CustomEvent<{state: unknown, url: string, replace?: boolean, callback: boolean}>) => {
const path = '/' + event.detail.url;
navigated.current = !event.detail.callback;
fromAnchor.current = false;
navigate(path, { state: event.detail.state, replace: event.detail.replace});
}, [navigate]);

Expand Down

0 comments on commit c6b1c50

Please sign in to comment.