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

Unable to customize SplitterPanel component #7646

Closed
gocreating opened this issue Jan 25, 2025 · 2 comments
Closed

Unable to customize SplitterPanel component #7646

gocreating opened this issue Jan 25, 2025 · 2 comments
Labels
Resolution: Workaround Issue or pull request contains a workaround. It needs to be reviewed further by Core Team

Comments

@gocreating
Copy link

Describe the bug

If I use SplitterPanel directly, it works fine:
https://stackblitz.com/edit/vitejs-vite-ybstrehp?file=src%2FApp.tsx

However, if I try to customize SplitterPanel, it breaks:
https://stackblitz.com/edit/vitejs-vite-bspdvwof?file=src%2FApp.tsx

Specifically, the style overflow: 'auto' can't be passed into the SplitterPanel component correctly.
How can I workaround on this?

Reproducer

https://stackblitz.com/edit/vitejs-vite-bspdvwof?file=src%2FApp.tsx

System Information

System:
    OS: macOS 15.2
    CPU: (8) arm64 Apple M2
    Memory: 110.61 MB / 8.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.12.2 - ~/.nvm/versions/node/v20.12.2/bin/node
    npm: 10.5.0 - ~/.nvm/versions/node/v20.12.2/bin/npm
    pnpm: 9.15.4 - ~/.nvm/versions/node/v20.12.2/bin/pnpm
  Browsers:
    Chrome: 132.0.6834.110
    Safari: 18.2
  npmPackages:
    primereact: ^10.9.1 => 10.9.1 
    react: 19.0.0 => 19.0.0 
    tailwindcss: ^3.4.17 => 3.4.17

Steps to reproduce the behavior

No response

Expected behavior

No response

@gocreating gocreating added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 25, 2025
@gcko
Copy link
Contributor

gcko commented Jan 25, 2025

Can you explain what you are trying to accomplish? Looking at your code, I have some suggestions for adjustments that split the styling from the functional part of SplitterPanel, please check it here: https://stackblitz.com/edit/vitejs-vite-frudu2gq?file=src%2FApp.tsx

@melloware melloware added Resolution: Workaround Issue or pull request contains a workaround. It needs to be reviewed further by Core Team and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jan 26, 2025
@melloware
Copy link
Member

Workaround provided by @gcko will close unless i hear back from OP

@melloware melloware closed this as not planned Won't fix, can't repro, duplicate, stale Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Workaround Issue or pull request contains a workaround. It needs to be reviewed further by Core Team
Projects
None yet
Development

No branches or pull requests

3 participants