Skip to content

Commit

Permalink
fix(InputField): add passing props
Browse files Browse the repository at this point in the history
  • Loading branch information
ej9x committed Feb 20, 2019
1 parent c2effab commit 052fe1c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/components/InputField/InputField.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ type InputFieldProps = {
meta?: MetaType,
/** callback to set input ref */
insideRef?:(HTMLInputElement) => void,
/** readonly */
readOnly?: boolean,
/** clearable */
clearable?: boolean,
/** html auto-complete representation */
autoComplete?: boolean,
/** disabled */
disabled?: boolean,

};

const InputField = ({
Expand All @@ -49,6 +58,9 @@ const InputField = ({
type,
leftIcon,
rightIcon,
disabled,
readOnly,
autoComplete,
...rest
}: InputFieldProps) => {
const { name, value, onChange, onFocus, onBlur } = input;
Expand Down Expand Up @@ -82,6 +94,9 @@ const InputField = ({
type={ type }
stretch={ stretch }
clearable={ clearable }
disabled={ disabled }
readOnly={ readOnly }
autoComplete={ autoComplete }
leftIcon={ leftIcon }
rightIcon={ rightIcon }
/>
Expand Down

0 comments on commit 052fe1c

Please sign in to comment.