I
I
Ilya Boyko2018-05-30 19:38:47
opencart
Ilya Boyko, 2018-05-30 19:38:47

Connecting bootstrap 4 to opencart3?

Hello forums!
Connected bootstrap 4 no errors, but as for dropdown, not everything is so good, the console is the following:
bootstrap.min.js:6 Uncaught TypeError: Bootstrap dropdown require Popper.js ( https://popper.js.org)
at altoggle (bootstrap. min.js:6)
at HTMLAnchorElement. (bootstrap.min.js:6)
at HTMLAnchorElement.dispatch (jquery-2.1.1.min.js:3)
at HTMLAnchorElement.r.handle (jquery-2.1.1.min.js:3)
l.toggle @ bootstrap .min.js:6
(anonymous) @ bootstrap.min.js:6
dispatch @ jquery-2.1.1.min.js:3
r.handle @ jquery-2.1.1.min.js:3
The bootstrap 4 documentation says :
Dropdowns are built on a third party library, Popper.js, which provides dynamic positioning and viewport detection. Be sure to include popper.min.js before Bootstrap's JavaScript or use bootstrap.bundle.min.js / bootstrap.bundle.js which contains Popper.js. Popper.js isn't used to position dropdowns in navbars though as dynamic positioning isn't required.
but connecting all of the above does not affect the result =(
I checked all classes, everything is in theory normal. Tell me where to dig please

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zoozag, 2018-05-31
@Boykoilya

The error says in black and white that you don't have Popper.js connected, and there's even a link where to get it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question