File tree Expand file tree Collapse file tree 4 files changed +198
-176
lines changed Expand file tree Collapse file tree 4 files changed +198
-176
lines changed Original file line number Diff line number Diff line change 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" ,
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" ,
Original file line number Diff line number Diff line change 44
55import * as React from 'react' ;
66import PropTypes from 'prop-types' ;
7- import { Popper , type PopperChildrenProps } from 'react-popper' ;
7+ import { Popper } from 'react-popper' ;
88
99import { values } from '../utils' ;
1010import { 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 ,
Original file line number Diff line number Diff line change 33import { DOWN , UP } from '../constants' ;
44import type { Option } from '../types' ;
55
6+ type KeyCode = typeof DOWN | typeof UP ;
7+
68function 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
2022export default function getUpdatedActiveIndex (
2123 currentIndex : number ,
22- keyCode : DOWN | UP ,
24+ keyCode : KeyCode ,
2325 items : Option [ ]
2426) : number {
2527 let newIndex = currentIndex ;
You can’t perform that action at this time.
0 commit comments