Skip to content

Commit

Permalink
feat(warn): point to scrollBehavior in message
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Sep 11, 2020
1 parent 2180810 commit 70ce7fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/scrollBehavior.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 70ce7fe

Please sign in to comment.