Skip to content

Commit

Permalink
minor bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Hinchley committed Aug 9, 2019
1 parent 4f95933 commit dbf7472
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions src/components/Input/Input.tsx
Original file line number Diff line number Diff line change
@@ -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";

Expand Down Expand Up @@ -104,6 +105,7 @@ export class Input extends React.PureComponent<InputProps, InputState> {
suggestions,
results,
getInputProps,
getRootProps,
openMenu,
closeMenu,
setState,
Expand All @@ -119,6 +121,10 @@ export class Input extends React.PureComponent<InputProps, InputState> {
this.props.dropdownMode === "suggestions" ? suggestions : results;
return (
<div
{
// @ts-ignore
...getRootProps({}, { suppressRefError: true })
}
className="sj-input"
css={
this.props.styles &&
Expand Down

0 comments on commit dbf7472

Please sign in to comment.