Popper.js removed from D10 Core

Created on 3 August 2023, over 1 year ago
Updated 29 October 2023, about 1 year ago

Problem/Motivation

Popper.js removed from Drupal 10 core means bootstrap_barrio cannot depend on it. Menu drop-downs do not work.

Proposed resolution

Change bootstrap_barrio.libraries.yml:

From:

# Bootstrap

bootstrap:
  js:
    /libraries/bootstrap/dist/js/bootstrap.min.js: {}
  css:
    component:
      /libraries/bootstrap/dist/css/bootstrap.min.css: {}
  dependencies:
    - core/popperjs

to:

# Bootstrap

bootstrap:
  js:
    /libraries/bootstrap/dist/js/bootstrap.bundle.min.js: { minified: true }
  css:
    component:
      /libraries/bootstrap/dist/css/bootstrap.min.css: {}
🐛 Bug report
Status

Fixed

Version

5.5

Component

Code

Created by

🇺🇸United States derekw

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024