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
{{ message }}
Repository navigation
Adding widget to nested grid: Cannot set property 'isOutOfGrid' of undefined #1143
In the situation where you have nested grid where both the parent grid as well as the nested grid accept widgets, adding a widget to the nest grid will result in a javascript error: Cannot set property 'isOutOfGrid' of undefined. It seems that both grids try to handle adding the new widget, while only one is able to accept the widget.
thank you for reporting and fixing it. keep in mind that acceptWidgets can also be true|false|string so you will have to check being a string before checking the class match.
Do you mind doing a pull request ?
I will need to revert my last changes for jquery and move that into a branch (I have a lot of local work for 1.0.0 release with breaking changes I need to put in that branch as well) as I should release a 0.6.4 before with your fixes. I'll be doing that this weekend.
Activity
adumesny commentedon Feb 11, 2020
thank you for reporting and fixing it. keep in mind that
acceptWidgetscan also betrue|false|stringso you will have to check being a string before checking the class match.Do you mind doing a pull request ?
I will need to revert my last changes for jquery and move that into a branch (I have a lot of local work for 1.0.0 release with breaking changes I need to put in that branch as well) as I should release a 0.6.4 before with your fixes. I'll be doing that this weekend.
ronvanpol commentedon Feb 14, 2020
I have created a pull request. First time I've done that, so I hope that it's ok what I did.
bug gridstack#1143
ronvanpol commentedon Feb 16, 2020
I just created a new PR against the develop branche. Hopefully everything is ok this time.
adumesny commentedon Feb 17, 2020
fixed in the next release - thanks for reporting and code suggestion!