Skip to content

Commit

Permalink
ref updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Bargs committed Jan 17, 2019
1 parent 5152632 commit 500a585
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/components/form/field_number/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CommonProps } from '../../common';
import { IconType } from '../../icon'
import { IconType } from '../../icon';

import { ReactNode, SFC, InputHTMLAttributes } from 'react';
import { ReactNode, SFC, InputHTMLAttributes, Ref } from 'react';

declare module '@elastic/eui' {

Expand All @@ -18,7 +18,7 @@ declare module '@elastic/eui' {
compressed?: boolean;
prepend?: ReactNode | ReactNode[];
append?: ReactNode | ReactNode[];
inputRef?: (element: HTMLInputElement) => void;
inputRef?: Ref<HTMLInputElement>;
}

export const EuiFieldNumber: SFC<
Expand Down
4 changes: 2 additions & 2 deletions src/components/form/field_text/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CommonProps } from '../../common';

import { SFC, InputHTMLAttributes } from 'react';
import { SFC, InputHTMLAttributes, Ref } from 'react';

declare module '@elastic/eui' {

Expand All @@ -12,7 +12,7 @@ declare module '@elastic/eui' {
export interface EuiFieldTextProps {
icon?: string;
isInvalid?: boolean;
inputRef?: (ref: HTMLInputElement) => void;
inputRef?: Ref<HTMLInputElement>;
fullWidth?: boolean;
isLoading?: boolean;
prepend?: React.ReactNode;
Expand Down
2 changes: 1 addition & 1 deletion src/components/form/select/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ declare module '@elastic/eui' {
fullWidth?: boolean;
isLoading?: boolean;
hasNoInitialSelection?: boolean;
inputRef?: Ref<HTMLSelectElement> | ((ref: HTMLInputElement) => void);
inputRef?: Ref<HTMLSelectElement>;
compressed?: boolean;
prepend?: ReactNode | ReactNode[];
append?: ReactNode | ReactNode[];
Expand Down

0 comments on commit 500a585

Please sign in to comment.