Skip to content
This repository has been archived by the owner on Nov 9, 2024. It is now read-only.

Commit

Permalink
Update Popper.js to remove @ts-ignore comments
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiks committed Oct 20, 2019
1 parent b467854 commit 5013e28
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,6 @@
"typescript": "^3.5.3"
},
"dependencies": {
"popper.js": "^1.15.0"
"popper.js": "^1.16.0"
}
}
2 changes: 1 addition & 1 deletion src/addons/createSingleton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ export default function createSingleton(
}

instance.popperInstance!.reference = {
// @ts-ignore - awaiting [email protected] release
referenceNode: target,
// These `client` values don't get used by Popper.js if they are 0
clientHeight: 0,
clientWidth: 0,
getBoundingClientRect(): ClientRect {
Expand Down
1 change: 0 additions & 1 deletion src/plugins/followCursor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ export default {

if (isCursorOverReference || !instance.props.interactive) {
instance.popperInstance.reference = {
// @ts-ignore - awaiting [email protected] release
referenceNode: reference,
// These `client` values don't get used by Popper.js if they are 0
clientWidth: 0,
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/inlinePositioning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export default {
}

instance.popperInstance!.reference = {
// @ts-ignore - awaiting [email protected] release
referenceNode: reference,
// These `client` values don't get used by Popper.js if they are 0
clientWidth: 0,
clientHeight: 0,
getBoundingClientRect(): ClientRect | DOMRect {
Expand Down

0 comments on commit 5013e28

Please sign in to comment.