diff --git a/package-lock.json b/package-lock.json index 3d42f6dfd..ec5d8748d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11205,9 +11205,9 @@ "dev": true }, "popper.js": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/popper.js/-/popper.js-1.15.0.tgz", - "integrity": "sha512-w010cY1oCUmI+9KwwlWki+r5jxKfTFDVoadl7MSrIujHU5MJ5OR6HTDj6Xo8aoR/QsA56x8jKjA59qGH4ELtrA==" + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/popper.js/-/popper.js-1.16.0.tgz", + "integrity": "sha512-+G+EkOPoE5S/zChTpmBSSDYmhXJ5PsW8eMhH8cP/CQHMFPBG/kC9Y5IIw6qNYgdJ+/COf0ddY2li28iHaZRSjw==" }, "posix-character-classes": { "version": "0.1.1", diff --git a/package.json b/package.json index d371487d8..467c97c41 100644 --- a/package.json +++ b/package.json @@ -134,6 +134,6 @@ "typescript": "^3.5.3" }, "dependencies": { - "popper.js": "^1.15.0" + "popper.js": "^1.16.0" } } diff --git a/src/addons/createSingleton.ts b/src/addons/createSingleton.ts index 1a65f7746..70a71d3ca 100644 --- a/src/addons/createSingleton.ts +++ b/src/addons/createSingleton.ts @@ -102,8 +102,8 @@ export default function createSingleton( } instance.popperInstance!.reference = { - // @ts-ignore - awaiting popper.js@1.16.0 release referenceNode: target, + // These `client` values don't get used by Popper.js if they are 0 clientHeight: 0, clientWidth: 0, getBoundingClientRect(): ClientRect { diff --git a/src/plugins/followCursor.ts b/src/plugins/followCursor.ts index 670024ee7..e320f2960 100644 --- a/src/plugins/followCursor.ts +++ b/src/plugins/followCursor.ts @@ -158,7 +158,6 @@ export default { if (isCursorOverReference || !instance.props.interactive) { instance.popperInstance.reference = { - // @ts-ignore - awaiting popper.js@1.16.0 release referenceNode: reference, // These `client` values don't get used by Popper.js if they are 0 clientWidth: 0, diff --git a/src/plugins/inlinePositioning.ts b/src/plugins/inlinePositioning.ts index 2de48017e..c2c2d2037 100644 --- a/src/plugins/inlinePositioning.ts +++ b/src/plugins/inlinePositioning.ts @@ -32,8 +32,8 @@ export default { } instance.popperInstance!.reference = { - // @ts-ignore - awaiting popper.js@1.16.0 release referenceNode: reference, + // These `client` values don't get used by Popper.js if they are 0 clientWidth: 0, clientHeight: 0, getBoundingClientRect(): ClientRect | DOMRect {