Skip to content

Commit

Permalink
Merge branch 'release/0.11.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Eitan Elbaz committed Jun 28, 2023
2 parents 8ba575b + d60a67c commit ae93a15
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-grand-tour",
"version": "0.11.0",
"version": "0.11.1",
"description": "",
"main": "./dist/main.cjs.js",
"module": "./dist/main.es.js",
Expand Down
1 change: 0 additions & 1 deletion src/ReactGrandTour.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ const ReactGrandTour: React.FC<Props> = ({
};
}, [onKeyUp]);

console.log(steps[currentIndex]);
return (
<ReactGrandTourContext.Provider
value={{
Expand Down
2 changes: 1 addition & 1 deletion src/components/Step/Step.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const Step = React.memo(
setAnchorBoundaries((anchorElement ?? element).getBoundingClientRect());
}, [element, anchorElement]);
const scrollToElement = useCallback(() => {
element.scrollIntoView(scrollIntoViewOptions);
element?.scrollIntoView?.(scrollIntoViewOptions);
adjustBoundaries();
}, [adjustBoundaries, element, scrollIntoViewOptions]);
useEffect(() => {
Expand Down

0 comments on commit ae93a15

Please sign in to comment.