Skip to content

Commit

Permalink
fix anchors scroll to target
Browse files Browse the repository at this point in the history
  • Loading branch information
clementroche committed Mar 7, 2025
1 parent 42430dd commit 7f27db5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/lenis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ export class Lenis {
typeof this.options.anchors === 'object' && this.options.anchors
? this.options.anchors
: undefined
this.scrollTo(id, options)
this.scrollTo(`#${id.split('#')[1]}`, options)
}
}
}
Expand Down

0 comments on commit 7f27db5

Please sign in to comment.