Skip to content

Commit

Permalink
avoid selector escaping issues
Browse files Browse the repository at this point in the history
  • Loading branch information
krmax44 committed May 29, 2019
1 parent 36eddff commit 5c2ba51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/saber/vue-renderer/app/helpers/scroll-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function scrollToPosition(shouldScroll) {
let position
const isObject = typeof shouldScroll === 'object'
if (isObject && typeof shouldScroll.selector === 'string') {
const el = document.querySelector(shouldScroll.selector)
const el = document.getElementById(shouldScroll.selector.substr(1))
if (el) {
let offset =
shouldScroll.offset && typeof shouldScroll.offset === 'object'
Expand Down

0 comments on commit 5c2ba51

Please sign in to comment.