Offcanvas navbar expand leaves stray overlay
See original GitHub issuePrerequisites
- I have searched for duplicate or closed issues
- I have validated any HTML to avoid common problems
- I have read the contributing guidelines
Describe the issue
A follow-up from https://github.com/twbs/bootstrap/issues/35577 - in the same scenario (an offcanvas navbar with .navbar-expand-${breakpoint}
), if the offcanvas is opened, but then the browser window is resized, the offcanvas disappears but the semi-transparent overlay remains.
/cc @florianlacreuse
Reduced test cases
https://codepen.io/florianlacreuse/pen/wvreVxN
What operating system(s) are you seeing the problem on?
Windows
What browser(s) are you seeing the problem on?
Chrome
What version of Bootstrap are you using?
v5.1.3
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Bootstrap 5 OffCanvas not working inside navbar with sm screen
Try removing the "navbar-expand-sm" class from the nav tag. You can also adjust it as per other breakpoints like "navbar-expand-md" or ...
Read more >Fix toolbar on small screen sizes and redesign ... - Drupal
On a mobile device, the toolbar extends vertically down the page, showing the top-level navigation by default (Content, Structure, and so on) ...
Read more >User Guide - Canvas Support
Mouse position: When you move the pointer, draw, resize, or rotate objects, ... With this option off, Canvas Draw pastes text into the...
Read more >Table of Content Layout Sticky - Element Pack
... and the meridian sun strikes the upper surface of the impenetrable foliage of my trees, and but a few stray gleams steal...
Read more >Corel PaintShop Pro 2021 User Guide
From the Start menu, choose Corel PaintShop Pro 2021 or use the ... If you expand the image window to show the off-canvas...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This should be fixed with the JS changes coming in #35736.
Also related to #34720.