-
-
Notifications
You must be signed in to change notification settings - Fork 78.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v5 Offcanvas: Not visible on page load with show class #33372
Comments
/CC @GeoSot |
@iainhallam please can you attach a living example that replicates the issue? |
https://codepen.io/iainhallam/pen/XWNQZRV replicates for me. The CSS ( |
Operating system and version: Windows 10
Browser and version: Firefox 86.0 and Chome 89.0.4389.82
I'm trying out the new offcanvas component, which is great, but when I have
show
as part of the initial classes, the menu doesn't open on page load. It may be something I'm doing wrong, but I think I've followed the setup correctly for the current Bootstrap from GitHub.Expected behaviour: On load, the offcanvas is opened, and the document obscured by the overlay.
Actual behaviour: No offcanvas shown. Clicking the button the first time does nothing (it toggles the
show
class off), then the second time it shows the offcanvas and the document is obscured.Moving the script tag to the top of the document or into the
head
seems to make no difference.The text was updated successfully, but these errors were encountered: