alvarotrigo / react-fullpage

Official React.js wrapper for fullPage.js https://alvarotrigo.com/react-fullpage/
GNU General Public License v3.0
1.27k stars 179 forks source link

TypeError : 'previousElementSibling' #401

Open Seol827 opened 1 year ago

Seol827 commented 1 year ago

Description

Hello, I got a new error messagešŸ˜„. I think this problem is caused on mobile size. The problem occurs when I leave the main page(applied fullpage) and moves to another page. It doesn't keep happening, it happens occasionally. So I don't know the cause.

1. error

2. error2

3. fullerror

+) Another issue

On mobile size, when I click the dragAndMove slidesNavigation, I got the error message. image


code

image

Also I found the another issue, then I updated the version for @0.1.35

alvarotrigo commented 1 year ago

Can you please provide an isolated reproduction in Codesandbox with no CSS or JS files external to fullPage.js and the minimum amount of HTML code. Use empty sections unless strictly necessary for reproduction.

I can't reproduce on my side.

alvarotrigo commented 1 year ago

Does it happen if you remove the dragAndMove extension?

What are your fullpage initialization settings?

Seol827 commented 1 year ago

@alvarotrigo

Does it happen if you remove the dragAndMove extension?

I removed the dragAndMove extension, everything is alright.

+The project unit is big now, so it is impossible for me to create the html file separately quickly. The error continues to occur in the dragAndMove.js file. In particular, it is strange that the corresponding error appears on a sub-page other than the main page I applied.

Seol827 commented 1 year ago

@alvarotrigo I will send you the details by email.

alvarotrigo commented 1 year ago

In particular, it is strange that the corresponding error appears on a sub-page other than the main page I applied.

Can you clarify this?

fullPage.js should only be initialized on the page you are using it. Ideally, the JS & CSS files should also not be included if the page isn't using fullPage.js