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

Panel Header is duplicated when using components in react app #358

Closed
yorschor opened this issue Jun 20, 2024 · 2 comments
Closed

Panel Header is duplicated when using components in react app #358

yorschor opened this issue Jun 20, 2024 · 2 comments

Comments

@yorschor
Copy link

I noticed this while playing around with PCUI in a NextJS app.
The following code
export default function App() { return ( <Panel headerText="Foo Basadsadfr" collapsible collapseHorizontally resizable="right" width={150} resizeMin={150} resizeMax={300}/> ) }
results in this on my side
image

I assume this is perhaps due to how react manages the lifetime? Its working fin in the current example so I assumed that its a react specific.

@marklundin
Copy link
Member

Yep, this looks like a valid issue. Repro https://stackblitz.com/edit/vitejs-vite-vrt9bt?file=src%2FApp.tsx

@yorschor
Copy link
Author

yorschor commented Oct 3, 2024

Appears to be fixed by #360 Thanks a lot :)

@yorschor yorschor closed this as completed Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants