Skip to content

Commit

Permalink
fix(core-components-amount-input): fix console error
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrsavk committed Sep 16, 2020
1 parent 6459eb4 commit 461d435
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/amount-input/src/Component.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ import { AmountInput } from '@alfalab/core-components-amount-input';
leftAddons={boolean('leftAddons', false) && <Icon />}
bottomAddons={boolean('bottomAddons', false) && <span>bottom text</span>}
onChange={action('change')}
clear={boolean('clear', false)}
/>
</Story>

Expand Down
2 changes: 2 additions & 0 deletions packages/amount-input/src/Component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export const AmountInput: React.FC<AmountInputProps> = ({
bold = true,
className,
dataTestId,
clear = false,
onChange,
onBlur,
onFocus,
Expand Down Expand Up @@ -213,6 +214,7 @@ export const AmountInput: React.FC<AmountInputProps> = ({

<Input
{...restProps}
clear={clear}
placeholder={placeholder}
value={inputValue}
className={cn(styles.component, className)}
Expand Down

0 comments on commit 461d435

Please sign in to comment.