Closed josdigital closed 1 year ago
On long menus that requires scrolling, after scrolling and adding a new item, the item is added but the interface doesn't get updated immediately and an error warning is shown.
After digging into the error I found that this is originated from craft's BaseElementIndex.js updateElements method (line 1335) that is called from navigation.js with the addNodes method.
The error is coming from this.$main.offset().top where this.$main.offset() is undefined.
this.$main.offset().top
this.$main.offset()
Please check the issue on this gif:
4.4.3
2.0.16
No
Tested this error in a new fresh Craft 4 installation with only Navigation plugin installed.
Thanks for the investigation, should be fixed in 2.0.17
Describe the bug
On long menus that requires scrolling, after scrolling and adding a new item, the item is added but the interface doesn't get updated immediately and an error warning is shown.
After digging into the error I found that this is originated from craft's BaseElementIndex.js updateElements method (line 1335) that is called from navigation.js with the addNodes method.
The error is coming from
this.$main.offset().top
wherethis.$main.offset()
is undefined.Steps to reproduce
Please check the issue on this gif:
Craft CMS version
4.4.3
Plugin version
2.0.16
Multi-site?
No
Additional context
Tested this error in a new fresh Craft 4 installation with only Navigation plugin installed.