Hi,

It seems the version of Bootstrap is Bootstrap 4.0 beta in the file bootstrap.min.js in the js directory, normally it's Bootstrap 5.3.1. I reproduce the problem on the 5.0.10, 5.0.6 and 5.0.5 for the moment. The file cause the issue Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.

CommentFileSizeAuthor
#4 compiled-versions.png272.83 KBravi kant
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

dakhara created an issue. See original summary.

hatuhay’s picture

Category: Bug report » Support request
Status: Active » Postponed (maintainer needs more info)
tommyk’s picture

Status: Postponed (maintainer needs more info) » Active

The files in the js/ directory, including js/bootstrap.min.js, have not been recompiled as minimum required versions for the theme have increased. Notice that the version of js/bootstrap.min.js comes from the initial commit over 6 years ago.

While it is understood that these files will be overwritten when we compile assets for our own subthemes, I think it makes sense to keep them up-to-date for released versions of the theme. I encountered the same issue when installing this theme just to try it out without the extra work of creating a customized version of it.

If you aren't willing to keep the compiled assets up to date then putting a notice of some kind in the documentation or on the project page would be helpful. Something like

The compiled assets bundled with this theme are likely out of date. It is highly recommended to run gulp in order to recompile them before trying out this theme.

would clarify the situation quite a bit.

(The original issue I came looking for is that the dropdown menus in the Admin Toolbar do not work on the frontend when this theme is in use out of the box.)

ravi kant’s picture

StatusFileSize
new272.83 KB

@TommyK
Are you creating a sub-theme of bootstrap_sass?

I did not find an issue when I ran the gulp command on the bootstrap_sass folder and, I got the 'bootstrap.min.js' version according to bootstrap_sass version.

compiling

tommyk’s picture

> Are you creating a sub-theme of bootstrap_sass?

No, I am not. I stated that in my comment.

> While it is understood that these files will be overwritten when we compile assets for our own subthemes, I think it makes sense to keep them up-to-date for released versions of the theme. I encountered the same issue when installing this theme just to try it out without the extra work of creating a customized version of it.

ravi kant’s picture

Ok @TommyK

I am agree that default compile style files should be upto date with latest compile.

ravi kant’s picture

Status: Active » Needs review

I have created MR !18 for compiled styles files.