Skip to content

Commit

Permalink
Merge pull request #400 from alvarotrigo/dev
Browse files Browse the repository at this point in the history
Merging dev branch 0.1.35
  • Loading branch information
alvarotrigo authored Mar 8, 2023
2 parents 5c45a5f + 554b879 commit 7035421
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<p align="center">Official React wrapper for the <a target="_blank" href="https://github.com/alvarotrigo/fullPage.js/">fullpage.js library</a></p>

<p align="center">
<img src="https://img.shields.io/badge/react--fullpage-v0.1.34-brightgreen.svg" alt="react-fullpage version" />
<img src="https://img.shields.io/badge/react--fullpage-v0.1.35-brightgreen.svg" alt="react-fullpage version" />
</p>

- [Demo online](https://alvarotrigo.com/react-fullpage/) | [CodeSandbox](https://codesandbox.io/s/m34yq5q0qx)
Expand Down
2 changes: 1 addition & 1 deletion components/ReactFullpage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class ReactFullpage extends React.Component {
const slideSelector = this.props.slideSelector || '.slide';
const sectionSelector = this.props.sectionSelector || '.section';
const activeSection = document.querySelector(sectionSelector + '.active');
const activeSectionIndex = activeSection ? this.fpUtils.index(activeSection) : this.state.destination.index - 1;
const activeSectionIndex = activeSection ? this.fpUtils.index(activeSection) : this.state.destination ? this.state.destination.index - 1 : 0;
const activeSlide = document.querySelector(sectionSelector + '.active ' + slideSelector + '.active');
const activeSlideIndex = activeSlide ? this.fpUtils.index(activeSlide) : -1;

Expand Down
4 changes: 2 additions & 2 deletions dist/react-fullpage-umd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/react-fullpage.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/gatsby/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"serve": "export SET NODE_OPTIONS=--openssl-legacy-provider && gatsby serve"
},
"dependencies": {
"@fullpage/react-fullpage": "^0.1.34",
"@fullpage/react-fullpage": "^0.1.35",
"gatsby": "^4.22.1",
"react": "^18.1.0",
"react-dom": "^18.1.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"author": "cmswalker",
"license": "GPL-3.0",
"dependencies": {
"@fullpage/react-fullpage": "^0.1.34",
"@fullpage/react-fullpage": "^0.1.35",
"next": "^12.1.6",
"react": "^18.1.0",
"react-dom": "^18.1.0"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fullpage/react-fullpage",
"version": "0.1.34",
"version": "0.1.35",
"description": "Official react wrapper for fullPage.js",
"author": "cmswalker",
"contributors": [
Expand Down

0 comments on commit 7035421

Please sign in to comment.