Skip to content

Commit b12c3f2

Browse files
committed
Update dependencies
1 parent 66ad013 commit b12c3f2

File tree

4 files changed

+198
-176
lines changed

4 files changed

+198
-176
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"@ericgio/eslint-config-react": "^6.0.0",
7070
"@rollup/plugin-babel": "^5.0.2",
7171
"@rollup/plugin-commonjs": "^14.0.0",
72-
"@rollup/plugin-node-resolve": "^8.0.0",
72+
"@rollup/plugin-node-resolve": "^9.0.0",
7373
"@rollup/plugin-replace": "^2.3.1",
7474
"babel-eslint": "^10.0.1",
7575
"babel-loader": "^8.0.5",
@@ -85,7 +85,7 @@
8585
"eslint": "^7.6.0",
8686
"eslint-plugin-flowtype": "^5.2.0",
8787
"eslint-plugin-react-hooks": "^4.0.4",
88-
"flow-bin": "^0.131.0",
88+
"flow-bin": "^0.132.0",
8989
"gh-pages": "^3.1.0",
9090
"husky": "^4.2.3",
9191
"isomorphic-fetch": "^2.2.1",

src/components/Overlay.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import * as React from 'react';
66
import PropTypes from 'prop-types';
7-
import { Popper, type PopperChildrenProps } from 'react-popper';
7+
import { Popper } from 'react-popper';
88

99
import { values } from '../utils';
1010
import { ALIGN } from '../constants';
@@ -105,7 +105,7 @@ const Overlay = (props: OverlayProps) => {
105105
placement={getPlacement(props)}
106106
positionFixed={positionFixed}
107107
referenceElement={referenceElement}>
108-
{({ ref, ...popperProps }: PopperChildrenProps) => children({
108+
{({ ref, ...popperProps }) => children({
109109
...popperProps,
110110
innerRef: ref,
111111
inputHeight: referenceElement ? referenceElement.offsetHeight : 0,

src/utils/getUpdatedActiveIndex.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
import { DOWN, UP } from '../constants';
44
import type { Option } from '../types';
55

6+
type KeyCode = typeof DOWN | typeof UP;
7+
68
function skipDisabledOptions(
79
currentIndex: number,
8-
keyCode: DOWN | UP,
10+
keyCode: KeyCode,
911
items: Option[]
1012
): number {
1113
let newIndex = currentIndex;
@@ -19,7 +21,7 @@ function skipDisabledOptions(
1921

2022
export default function getUpdatedActiveIndex(
2123
currentIndex: number,
22-
keyCode: DOWN | UP,
24+
keyCode: KeyCode,
2325
items: Option[]
2426
): number {
2527
let newIndex = currentIndex;

0 commit comments

Comments
 (0)