diff --git a/src/select/Select.ts b/src/select/Select.ts index 3156e9099..0369bb288 100644 --- a/src/select/Select.ts +++ b/src/select/Select.ts @@ -55,6 +55,7 @@ export const useSelect = createHook({ const action = keyMap[event.key as keyof typeof keyMap]; action?.(); }, + // eslint-disable-next-line react-hooks/exhaustive-deps [ options.visible, options.show, diff --git a/src/select/SelectBaseState.ts b/src/select/SelectBaseState.ts index ebcb8c74b..73ccabeff 100644 --- a/src/select/SelectBaseState.ts +++ b/src/select/SelectBaseState.ts @@ -1,3 +1,4 @@ +/* eslint-disable react-hooks/exhaustive-deps */ import * as React from "react"; import { SetState } from "reakit-utils/ts"; import { CompositeStateReturn, CompositeState, CompositeActions } from "reakit"; diff --git a/src/select/SelectItem.ts b/src/select/SelectItem.ts index 24ec76395..6d7098441 100644 --- a/src/select/SelectItem.ts +++ b/src/select/SelectItem.ts @@ -1,3 +1,4 @@ +/* eslint-disable react-hooks/exhaustive-deps */ import { CompositeItemOptions, CompositeItemHTMLProps, diff --git a/src/select/stories/SelectControlled.component.tsx b/src/select/stories/SelectControlled.component.tsx index 814d9f3f4..ae1c30f19 100644 --- a/src/select/stories/SelectControlled.component.tsx +++ b/src/select/stories/SelectControlled.component.tsx @@ -52,6 +52,7 @@ const SelectComp: React.FC = props => { React.useEffect(() => { if (!isUndefined(value)) select.setSelectedValue(value); + // eslint-disable-next-line react-hooks/exhaustive-deps }, [select.setSelectedValue, value]); React.useEffect(() => { diff --git a/src/select/stories/SelectWindows.component.tsx b/src/select/stories/SelectWindows.component.tsx index 88ec45898..2134a152f 100644 --- a/src/select/stories/SelectWindows.component.tsx +++ b/src/select/stories/SelectWindows.component.tsx @@ -54,6 +54,7 @@ export const App: React.FC = props => { const action = keyMap[event.key as keyof typeof keyMap]; if (action) action(); }, + // eslint-disable-next-line react-hooks/exhaustive-deps [ select.values, select.visible,