From dbf747288ccf031396e21af7277f8c5c359b0822 Mon Sep 17 00:00:00 2001 From: Benjamin Hinchley Date: Fri, 9 Aug 2019 13:41:22 +1000 Subject: [PATCH] minor bug fixes --- src/components/Input/Input.tsx | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/src/components/Input/Input.tsx b/src/components/Input/Input.tsx index dbec97060..234a154c4 100644 --- a/src/components/Input/Input.tsx +++ b/src/components/Input/Input.tsx @@ -1,22 +1,23 @@ /** @jsx jsx */ jsx; import { jsx } from "@emotion/core"; -import { CSSObject } from "@emotion/core"; /* tslint:disable max-classes-per-file */ import { Result } from "@sajari/sdk-js"; -import classnames from "classnames"; import { withTheme } from "emotion-theming"; import * as React from "react"; +import { Theme } from "../styles"; +import { ResultRendererProps, Results } from "./Results"; +import { Suggestions } from "./Suggestions"; +import { Typeahead } from "./Typeahead"; +import { CSSObject } from "@emotion/core"; import { - PipelineProps, Search, + PipelineProps, SearchState, StateChangeOptions } from "../Search"; -import { Theme } from "../styles"; -import { ResultRendererProps, Results } from "./Results"; -import { Suggestions } from "./Suggestions"; -import { Typeahead } from "./Typeahead"; -import { EmptyMicIcon, MicIcon, VoiceInput } from "./Voice"; +import { VoiceInput, MicIcon, EmptyMicIcon } from "./Voice"; +import classnames from "classnames"; + export type InputMode = "standard" | "typeahead"; export type DropdownMode = "none" | "suggestions" | "results"; @@ -104,6 +105,7 @@ export class Input extends React.PureComponent { suggestions, results, getInputProps, + getRootProps, openMenu, closeMenu, setState, @@ -119,6 +121,10 @@ export class Input extends React.PureComponent { this.props.dropdownMode === "suggestions" ? suggestions : results; return (