Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outline onItemClick only works once #997

Closed
4 tasks done
Leakune opened this issue May 9, 2022 · 4 comments
Closed
4 tasks done

Outline onItemClick only works once #997

Leakune opened this issue May 9, 2022 · 4 comments
Labels
bug Something isn't working stale

Comments

@Leakune
Copy link

Leakune commented May 9, 2022

Before you start - checklist

  • I followed instructions in documentation written for my React-PDF version
  • I have checked if this bug is not already reported
  • I have checked if an issue is not listed in Known issues
  • If I have a problem with PDF rendering, I checked if my PDF renders properly in PDF.js demo

Description

Hello,
I was using your example of Display interactive Table of Contents.
The display works: it changes the page of the pdf when I click to the links.
However each link only works once, when I click the same link over 2 times it doesn't change the page.

Steps to reproduce

  1. Click on one of the link from the table of contents.
  2. Click on another link.
  3. Click on the first link you clicked.
  4. The page doesn't change on step 3.

Expected behavior

  1. Click on one of the link from the table of contents -> should change the page
  2. Click on another link -> should change to another page
  3. Click on the first link you clicked -> should change back to the page like in step 1.

Actual behavior

  1. Click on one of the link from the table of contents -> change the page
  2. Click on another link -> change to another page
  3. [Issue here] Click on the first link you clicked -> the page is not changing

Additional information

No response

Environment

  • Browser (if applicable): Chrome 99
  • React-PDF version: 5.7.2
  • React version: 18.0.0
@Leakune Leakune added the bug Something isn't working label May 9, 2022
@jholmes033169
Copy link

I am also experiencing this exact same behavior on version 5.7.2, react version 17.0.2. Same browser.

@github-actions
Copy link
Contributor

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days.

@github-actions github-actions bot added the stale label Aug 15, 2022
@github-actions
Copy link
Contributor

This issue was closed because it has been stalled for 14 days with no activity.

@MuthuChess
Copy link

MuthuChess commented Sep 23, 2022

@wojtekmaj I also experience the same issue on version 5.7.2, react version 16.8.6. Pls suggest if this is a bug or an implementation mistake from my side? Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

3 participants