diff --git a/js/src/dropdown.js b/js/src/dropdown.js index c262997ce9..b9f5a4cd39 100644 --- a/js/src/dropdown.js +++ b/js/src/dropdown.js @@ -156,10 +156,10 @@ class Dropdown { return } - // Disable totally Popper.js for Dropdown in Navbar + // Totally disable Popper for Dropdowns in Navbar if (!this._inNavbar) { if (typeof Popper === 'undefined') { - throw new TypeError('Bootstrap\'s dropdowns require Popper.js (https://popper.js.org)') + throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org)') } let referenceElement = this._element @@ -329,7 +329,7 @@ class Dropdown { } } - // Disable Popper.js if we have a static display + // Disable Popper if we have a static display if (this._config.display === 'static') { popperConfig.modifiers.applyStyle = { enabled: false diff --git a/js/src/tooltip.js b/js/src/tooltip.js index 7b115a69be..b2495a3e11 100644 --- a/js/src/tooltip.js +++ b/js/src/tooltip.js @@ -125,7 +125,7 @@ const TRIGGER_MANUAL = 'manual' class Tooltip { constructor(element, config) { if (typeof Popper === 'undefined') { - throw new TypeError('Bootstrap\'s tooltips require Popper.js (https://popper.js.org)') + throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org)') } // private diff --git a/js/tests/unit/dropdown.spec.js b/js/tests/unit/dropdown.spec.js index b1a99e7e6b..f5f41636cd 100644 --- a/js/tests/unit/dropdown.spec.js +++ b/js/tests/unit/dropdown.spec.js @@ -100,7 +100,7 @@ describe('Dropdown', () => { expect(dropdown.toggle).toHaveBeenCalled() }) - it('should allow to pass config to popper.js with `popperConfig`', () => { + it('should allow to pass config to Popper with `popperConfig`', () => { fixtureEl.innerHTML = [ '