You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a css prop and a canvasCss prop with strings values to the PDFViewer component
Run application
Open devtools
You can't see the css prop string being present as a class in the wrapper html node, instead you see the canvasCss prop string present in the wrapper element instead of in the canvas element
Expected behavior
The string being passed through the css prop should be present as a css class in the wrapper element, like in the mgr-pdf-viewer-react library. The string being passed through the canvasCss should be present as a css class in the canvas element
gemanepa
changed the title
[BUG] The "css" prop doesn't set the passed string as a CSS class to the component wrapper
[BUG] The "css" prop doesn't set the passed string as a CSS class to the component wrapper, the "canvasCss" prop does
Dec 29, 2021
Describe the bug
The "css" prop doesn't set the passed string as a CSS class to the component wrapper, the "canvasCss" prop does (while not being added to the canvas html element like it's supposed to)
Codesandbox: https://codesandbox.io/s/pdf-viewer-reactjs-fd62g?file=/src/App.js
Live version: https://fd62g.csb.app/
How to Reproduce
Steps to reproduce the behavior:
Expected behavior
The string being passed through the css prop should be present as a css class in the wrapper element, like in the mgr-pdf-viewer-react library. The string being passed through the canvasCss should be present as a css class in the canvas element
Codesandbox
https://codesandbox.io/s/pdf-viewer-reactjs-fd62g?file=/src/App.js
Live version: https://fd62g.csb.app/
The text was updated successfully, but these errors were encountered: