Skip to content

fix(AmountInput): default value #952

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/amount-input/src/Component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ const colorStyles = {
};

export type AmountInputProps = Omit<InputProps, 'value' | 'onChange' | 'type'> & {
/**
* Начальное значение поля
*/
defaultValue?: string | number;

/**
* Денежное значение в минорных единицах
* Значение null - значит не установлено
Expand Down