- Issue created by @Taran2L
- Merge request !89#3455800 Toggle sidebar might not work with latest Gin 8.x-3.0-rc11 β (Open) created by Taran2L
- Status changed to Needs review
8 days ago 9:41pm 19 June 2024
Since Gin 8.x-3.0-rc11 - Gin theme added a tooltip after the sidebar toggle and changed the related JS. Under some circumstances sidebar toggle no longer works and produces a JS error:
TypeError: null is not an object (evaluating 'sidebarTrigger.nextSibling.innerHTML=hideLabel')
The reason that is does not break for everyone is the following: whitespaces creates text nodes in DOM and by default template has a lot of whitespaces.
But when there is no whitespaces - no text nodes are being created (there is no tooltip element as well) -> JS error is emitted (see https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model/W...)
Add a tooltip (actually only a class is needed)
Review PR
Sidebar UI will match recent changes in Gin theme
None
None
Needs review
1.0
Code