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

Caret browsing doesn't work in react-pdf #1845

Open
4 tasks done
yuvalyellin opened this issue Jul 17, 2024 · 0 comments
Open
4 tasks done

Caret browsing doesn't work in react-pdf #1845

yuvalyellin opened this issue Jul 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@yuvalyellin
Copy link

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

In pdf.js demo, Caret browsing (Turning it on by F7 in Chrome) sort of works (in the demo the arrows don't move the caret but switch pages, but it is possible to place it) . In react-pdf the caret isn't shown at all when clicking on the pdf page, which means we can't make the page accessible with the library.

Steps to reproduce

  1. Open a web page with pdf rendered with react-pdf ( https://projects.wojtekmaj.pl/react-pdf/ )
  2. TurnOn Caret Browsing (In Chrome - by clicking F7)
  3. Click on some text element

Expected behavior

Caret appears, can be moved by the arrows and text can be selected.

Actual behavior

Caret isn't shown (Text can be selected though, but we have no indication from where )

Additional information

No response

Environment

  • Browser (if applicable): Chrome
  • React-PDF version: 9.1.0
  • React version: 18
  • Bundler name and version (if applicable):
@yuvalyellin yuvalyellin added the bug Something isn't working label Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant