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

OverlayPanel: breakpoints property breaks app #2852

Closed
MaxK4Code opened this issue May 6, 2022 · 1 comment · Fixed by #2853
Closed

OverlayPanel: breakpoints property breaks app #2852

MaxK4Code opened this issue May 6, 2022 · 1 comment · Fixed by #2853
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@MaxK4Code
Copy link

Describe the bug

If I use the property breakpoints of the OverlayPanel the whole app crashes with the error
TypeError: Cannot add property innerHTML, object is not extensible

Reproducer

https://codesandbox.io/s/primereact-test-breakpoint-bug-fzhzq1

PrimeReact version

8.0.1

React version

17.x

Language

ALL

Build / Runtime

Create React App (CRA)

Browser(s)

Firefox, Chrome (others not tested)

Steps to reproduce the behavior

  1. Just open the codesandbox

without property breakpoints the code works

Expected behavior

Should not break the app.

Although the property is called breakpoints. Maybe it should break the app.
Just a joke, I love primereact. ;-)

@MaxK4Code MaxK4Code added the Type: Bug Issue contains a defect related to a specific component. label May 6, 2022
@melloware
Copy link
Member

Thanks for the report I will investigate!

melloware added a commit to melloware/primereact that referenced this issue May 6, 2022
@melloware melloware self-assigned this May 6, 2022
@melloware melloware added this to the 8.1.0 milestone May 6, 2022
@mertsincan mertsincan modified the milestones: 8.1.0, 8.1 May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants