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

Primereact Splitter resize #5892

Closed
claudiotamiozzo opened this issue Feb 5, 2024 · 1 comment · Fixed by #5894
Closed

Primereact Splitter resize #5892

claudiotamiozzo opened this issue Feb 5, 2024 · 1 comment · Fixed by #5894
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@claudiotamiozzo
Copy link

Describe the bug

The resize of Splitter Panels doesn't work in version 10.4.0.
Trying to resize a panel generate the error:
Uncaught ReferenceError: horizontal is not defined
at resizePanel2 (splitter.esm.js:451:20)
at onResize2 (splitter.esm.js:360:5)
at listener (splitter.esm.js:246:16)
at listenerRef.current (hooks.esm.js:99:28)

It seems that in the primereact_splitter.js the horitontal variable is used but not defined:
var resizePanel = function resizePanel2(index, newPrevPanelSize, newNextPanelSize) {
prevPanelIndex.current = index;
gutterRef.current = gutterRefs.current[index];
size.current = horizontal ? DomHandler.getWidth(elementRef.current) : DomHandler.getHeight(elementRef.current);
....

Reproducer

No response

PrimeReact version

10.4.0

React version

17.x

Language

TypeScript

Build / Runtime

Create React App (CRA)

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@claudiotamiozzo claudiotamiozzo added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Feb 5, 2024
@melloware melloware added Type: Bug Issue contains a defect related to a specific component. and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Feb 5, 2024
@melloware melloware self-assigned this Feb 5, 2024
@melloware melloware added this to the 10.5.0 milestone Feb 5, 2024
melloware added a commit to melloware/primereact that referenced this issue Feb 5, 2024
@melloware
Copy link
Member

Thanks for the report. Fixed in next version

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.

2 participants