]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
feat(warn): point to scrollBehavior in message
authorEduardo San Martin Morote <posva13@gmail.com>
Fri, 11 Sep 2020 10:01:42 +0000 (12:01 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Fri, 11 Sep 2020 10:01:42 +0000 (12:01 +0200)
src/scrollBehavior.ts

index 7f3f10dc1c9b0df57a84f29964c680ec8188ecea..fe7f8dfbbe98d8f6a65f2d97fd7f3c575570c23a 100644 (file)
@@ -131,7 +131,10 @@ export function scrollToPosition(position: ScrollPosition): void {
         : positionEl
 
     if (!el) {
-      __DEV__ && warn(`Couldn't find element using selector "${position.el}"`)
+      __DEV__ &&
+        warn(
+          `Couldn't find element using selector "${position.el}" returned by scrollBehavior.`
+        )
       return
     }
     scrollToOptions = getElementPosition(el, position)