Browser: Chrome Version 138.0.7204.169 (Official Build) (arm64)
OS: macOS
URL: https://britannia.edynam.com/
Video: Jam
Hi Bricks Team!
Not sure if this one constitutes as a bug but I found an issue when using the Off Canvas element. When closing the off-canvas, the page scrolls up a bit each time. This is particularly prevalent on Chrome, but I also noticed a small amount of scrolling on Safari as well (the issue is non-existent on Firefox).
To recreate:
- Create an off-canvas and include a button to close it. (I suspect the issue may have to do with the sticky header, so you may need to set up the off-canvas in the header and enable “Sticky header” and “Sticky on scroll” settings.)
- Open the page in Chrome
- Scroll down slightly and open the off-canvas
- Close the off-canvas
After a very small amount of digging, I found it may have to do with a line in the bricksOffcanvas()
function inside of bricks.min.js.
Removing this line seemed to stop the issue from occurring.
Please let me know if there’s anything I can do about this.
Thanks in advance!