Skip to content
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

Provide a general summary of the issue #35708

Closed
3 tasks done
Eoras opened this issue Jan 22, 2022 · 1 comment
Closed
3 tasks done

Provide a general summary of the issue #35708

Eoras opened this issue Jan 22, 2022 · 1 comment

Comments

@Eoras
Copy link

Eoras commented Jan 22, 2022

Prerequisites

Describe the issue

Hi,

I'm using Symfony with WebpackEncore, and when i'm using MODALS with bootstrap, with the last update 5.1.3 of Bootstrap (installed with npm install bootstrap) i have a issue with modal :

bootstrap.esm.js:3131 Uncaught TypeError: Cannot read properties of null (reading 'hide')
    at HTMLButtonElement.<anonymous> (bootstrap.esm.js:3131:1)
    at HTMLDocument.handler (bootstrap.esm.js:387:1)

I tried to revert the version to 5.1.0 and this worked back. What happen with the 5.1.3 ? Something changed ?

My js file is compiled with webpack.

const $ = require('jquery');
require('bootstrap');

// any CSS you import will output into a single css file (app.css in this case)
import './styles/app.scss';

// start the Stimulus application
import './bootstrap';

Thanks for your help

Reduced test cases

See describe the issue

What operating system(s) are you seeing the problem on?

Linux

What browser(s) are you seeing the problem on?

Chrome, Safari, Microsoft Edge

What version of Bootstrap are you using?

5.1.3

@XhmikosR
Copy link
Member

Bug reports must include a live demo of the issue. Per our contributing guidelines, please create a reduced test case via CodePen or JS Bin and report back with your link, Bootstrap version, and specific browser and Operating System details.

This is an automated reply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
@XhmikosR @GeoSot @Eoras and others