Skip to content

Commit

Permalink
fix(router): trigger click signal name
Browse files Browse the repository at this point in the history
  • Loading branch information
AliMD committed Mar 5, 2022
1 parent a107e08 commit b4a9477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/router/src/trigger-click.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const clickTrigger = {

// if none of the above, convert the click into a navigation signal.
const {pathname, search, hash} = anchor;
requestSignal('vatr-router-change', {pathname, search, hash});
requestSignal('router-change', {pathname, search, hash});
// for a click event, the scroll is reset to the top position.
if (event.type === 'click') {
window.scrollTo(0, 0);
Expand Down

0 comments on commit b4a9477

Please sign in to comment.