pcui icon indicating copy to clipboard operation
pcui copied to clipboard

Panel Header is duplicated when using components in react app

Open yorschor opened this issue 1 year ago • 1 comments

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.

yorschor avatar Jun 20 '24 20:06 yorschor

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

marklundin avatar Jun 21 '24 09:06 marklundin

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

yorschor avatar Oct 03 '24 20:10 yorschor