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
TypeError: t(...).scrollTo is not a function
at None (/app/themes/pressbooks-aldine/dist/scripts/aldine.js:2:122430)
at r (/app/plugins/pressbooks/assets/dist/scripts/sentry.js:2:80044)
Steps to Reproduce
Visit the network home page for a Pressbooks network and append a #string to the URL which does not correspond to an existing id on the page.
Description
We use a scrollTo function on Aldine which produces an error if the # target is not present (see below).
pressbooks-aldine/assets/scripts/routes/common.js
Lines 19 to 25 in 2b9ef72
Sentry Issue: PRESSBOOKS-7D
Steps to Reproduce
#string
to the URL which does not correspond to an existing id on the page.aldine_JS_error.mp4
To fix: could check if target exists before attempting to scrollTo or could replace with vanilla JS scrollTo behaviour (https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollTo).
The text was updated successfully, but these errors were encountered: