Popper js library: Tooltip & popover positioning engine (Drupal 10 compatible)
Javascript library popperjs/popperjs is a drop-in replacement for library core/popperjs.
Since Drupal 10 core/popperjs is removed from Drupal core. See change record https://www.drupal.org/node/3307518 and #3307471: Deprecate popperjs.
The reason why it was removed is that Drupal core modules do not use the popperjs library.
There were no security reasons why the popperjs library has been removed from Drupal core.
Modules that want to keep using the popperjs library can use this module.
For developers
Installation
composer require drupal/popperjs
Drupal 9 to Drupal 10 migrations
In module.info.yml add popperjs:popperjs to the module dependencies list
In *.libraries.yml replace core/popperjs with popperjs/popperjs
Example
In your module or theme add popperjs as a dependency.
# module.info.yml
dependencies:
- popperjs:popperjs
# module.libraries.yml
lib:
version: VERSION
dependencies:
- core/drupal
- core/once
- popperjs/popperjs # <-- instead of: core/popperjs
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.