Skip to content

Conversation

@PastisD
Copy link

@PastisD PastisD commented Feb 15, 2022

Hello,

When each bootstrap module is imported individually, for exemple, import {Alert, Collapse, Dropdown} from 'bootstrap' in your application, an error occured using Bs5Utils : Uncaught ReferenceError: bootstrap is not defined

In the case of Modal, instead of using const bsModal = new bootstrap.Modal(modal, opts); we now use bootsrap module :

import {Modal as ModalBs} from "bootstrap";

const bsModal = new ModalBs(modal, opts);

With this fix, the error doesn't occur anymore for Modal, Toast and Snack.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant