You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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
The text was updated successfully, but these errors were encountered: