- Issue created by @Yuri
- π³π±Netherlands Yuri
Maybe its better to *not* close the sidr off-canvas region when clicking a link at all.
When a page is loaded using a link in the sidr off-canvas region, the whole page including the off canvas region is reloaded.
See for example the off canvas menu of Olivero, that does not close itself when clicking a link. - π³π±Netherlands Yuri
Also, any feature that expands or collapses a block in the sidr region, makes the sidr collapse, thus makes it disfunctional.
- π¨π¦Canada jigarius MontrΓ©al
Hey! Thanks for the info. I'll do my best to take a look at this at the earliest.
- π³π±Netherlands Yuri
I found a workaround, although its not optimal in user experience:
.sidr.right:hover { right: 0; }
This allows the sidr region to stay open when clicking inside sidr (unless the link requires a full page refresh), and sidr will close directly when hovering out of the sidr region.
- 370749fe committed on 8.x-4.x
Issue #3337373 by Yuri: Do not close Sidr when links therein are clicked
- 370749fe committed on 8.x-4.x
- Status changed to Fixed
almost 2 years ago 6:30pm 14 May 2023 - π¨π¦Canada jigarius MontrΓ©al
Done. Starting Sidr 4.x, clicking links inside Sidr won't close the Sidr panels. If someone wants to close Sidr panels in those events, they can simply attach an event listener and call
Drupal.Sidr.closeSidr();
. Automatically closed - issue fixed for 2 weeks with no activity.