wojtekmaj / react-pdf

Display PDFs in your React app as easily as if they were images.
https://projects.wojtekmaj.pl/react-pdf
MIT License
9.11k stars 867 forks source link

z-index isn't working on Document element of react-pdf #1715

Closed krishnaacharyaa closed 2 months ago

krishnaacharyaa commented 5 months ago

Before you start - checklist

Description

I have a simple search bar, which has overlay results, which is covering almost the entire application except for this PDF renderer element, it is overlapping the search results which is not ideal.

enter image description here

The actual heirarchy is

parent
|_SearchBar // which has overlay results
|_Folder
 |_Subfolder
  |_PDFViewer // which is overlaping

Steps to reproduce

clone the app from https://github.com/krishnaacharyaa/search-pdf-combo npm i npm run dev

Expected behavior

Document gets rendered below the searchresults overlay

Actual behavior

Document gets rendered above the searchresults overlay

Additional information

No response

Environment

github-actions[bot] commented 2 months ago

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[bot] commented 2 months ago

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