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
"Invalid height" error when inside flex container after updating 9.2.0 -> 9.2.1
After applying update to 9.2.1 (from 9.2.0) in our project, we started getting a crash when initialising the dashboard.
Uncaught Error: Invalid height
It seems a value of 'auto' is being passed to parseHeight, which fails to match the regex, which is only looking for specific height values.
After a little digging, this seems to happen when the gridstack element is inside a flex container, which is how we're laying things out in our application.
yeah I made that change (back to what is always was) as my app needs to set min-height in CSS rather than minRow, but this shoudl work. will check the broken example.
adumesny
added a commit
to adumesny/gridstack.js
that referenced
this issue
Sep 27, 2023
"Invalid height" error when inside flex container after updating 9.2.0 -> 9.2.1
After applying update to 9.2.1 (from 9.2.0) in our project, we started getting a crash when initialising the dashboard.
It seems a value of
'auto'
is being passed toparseHeight
, which fails to match the regex, which is only looking for specific height values.After a little digging, this seems to happen when the gridstack element is inside a flex container, which is how we're laying things out in our application.
Your environment
Steps to reproduce
https://jsfiddle.net/qnx6pwL1/
(view devtools console)
Expected behavior
Dashboard should behave like it did in 9.2.0, rendering correctly and not crashing out.
The text was updated successfully, but these errors were encountered: