Skip to content

Splitter: Incorrect detection of nested SplitterPanel #8449

@usrlocl

Description

@usrlocl

Describe the bug

Current logic incorrectly identifies any nested Prime Component (such as a Button) as a nested SplitterPanel causing incorrect behaviour and messes up styles. This change fixes that to identify SplitterPanel component only for such purpose.

Reproducer

https://stackblitz.com/edit/stackblitz-starters-kshvdxcw?file=src%2FApp.tsx

System Information

primereact: 10.9.7
react: 18.3.1

Steps to reproduce the behavior

stackblitz link shared above

Expected behavior

In the stackblitz example, Button should render with default styling

Metadata

Metadata

Assignees

Labels

Type: BugIssue contains a defect related to a specific component.

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions