Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ericgio committed Aug 24, 2020
1 parent 66ad013 commit b12c3f2
Show file tree
Hide file tree
Showing 4 changed files with 198 additions and 176 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"@ericgio/eslint-config-react": "^6.0.0",
"@rollup/plugin-babel": "^5.0.2",
"@rollup/plugin-commonjs": "^14.0.0",
"@rollup/plugin-node-resolve": "^8.0.0",
"@rollup/plugin-node-resolve": "^9.0.0",
"@rollup/plugin-replace": "^2.3.1",
"babel-eslint": "^10.0.1",
"babel-loader": "^8.0.5",
Expand All @@ -85,7 +85,7 @@
"eslint": "^7.6.0",
"eslint-plugin-flowtype": "^5.2.0",
"eslint-plugin-react-hooks": "^4.0.4",
"flow-bin": "^0.131.0",
"flow-bin": "^0.132.0",
"gh-pages": "^3.1.0",
"husky": "^4.2.3",
"isomorphic-fetch": "^2.2.1",
Expand Down
4 changes: 2 additions & 2 deletions src/components/Overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import * as React from 'react';
import PropTypes from 'prop-types';
import { Popper, type PopperChildrenProps } from 'react-popper';
import { Popper } from 'react-popper';

import { values } from '../utils';
import { ALIGN } from '../constants';
Expand Down Expand Up @@ -105,7 +105,7 @@ const Overlay = (props: OverlayProps) => {
placement={getPlacement(props)}
positionFixed={positionFixed}
referenceElement={referenceElement}>
{({ ref, ...popperProps }: PopperChildrenProps) => children({
{({ ref, ...popperProps }) => children({
...popperProps,
innerRef: ref,
inputHeight: referenceElement ? referenceElement.offsetHeight : 0,
Expand Down
6 changes: 4 additions & 2 deletions src/utils/getUpdatedActiveIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
import { DOWN, UP } from '../constants';
import type { Option } from '../types';

type KeyCode = typeof DOWN | typeof UP;

function skipDisabledOptions(
currentIndex: number,
keyCode: DOWN | UP,
keyCode: KeyCode,
items: Option[]
): number {
let newIndex = currentIndex;
Expand All @@ -19,7 +21,7 @@ function skipDisabledOptions(

export default function getUpdatedActiveIndex(
currentIndex: number,
keyCode: DOWN | UP,
keyCode: KeyCode,
items: Option[]
): number {
let newIndex = currentIndex;
Expand Down
Loading

0 comments on commit b12c3f2

Please sign in to comment.