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
When Splitter option stateStorage="local" (with stateKey using as well), local storage state saving very buggy. Sometimes value changes, but most cases it is static. Also, onResizeEnd event triggers buggy too.
I think there`s problem with onResizeEvent under the hood - something blocking its trigger or not trigger event as well.
Open local storage in developer tools application tab
Drag splitter to any position (watch to local storage) - value can be wrong.
Just reload preview - splitter can be on random (when min panel size value was set) or initial position
Drag splitter more times
Watch how local storage value has no affect or values wrong
Expected behavior
Local storage values must be changed when splitter drag ends. When tab reloads or on next visit, splitter must to load local storage value and be on the same position.
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 8, 2024
melloware
added a commit
to melloware/primereact
that referenced
this issue
Feb 11, 2024
Describe the bug
When Splitter option stateStorage="local" (with stateKey using as well), local storage state saving very buggy. Sometimes value changes, but most cases it is static. Also, onResizeEnd event triggers buggy too.
I think there`s problem with onResizeEvent under the hood - something blocking its trigger or not trigger event as well.
Reproducer
https://stackblitz.com/edit/k4zgsk?file=src%2FApp.jsx
PrimeReact version
10.5.0
React version
18.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
chrome
Steps to reproduce the behavior
Expected behavior
Local storage values must be changed when splitter drag ends. When tab reloads or on next visit, splitter must to load local storage value and be on the same position.
The text was updated successfully, but these errors were encountered: