Skip to content

Commit fbcb5c1

Browse files
authored
fix(readme): typo in example (#6)
1 parent 07fd836 commit fbcb5c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ scrollIntoView(node, {
5757
// Your scroll actions will always be an array, even if there is nothing to scroll
5858
behavior: actions =>
5959
// list is sorted from innermost (closest parent to your target) to outermost (often the document.body or viewport)
60-
scrollActions.forEach(({ el, top, left }) => {
60+
actions.forEach(({ el, top, left }) => {
6161
// implement the scroll anyway you want
6262
el.scrollTop = top
6363
el.scrollLeft = left

0 commit comments

Comments
 (0)