From 5ddf46186a982a4c36355a56ba6854e3f39124b2 Mon Sep 17 00:00:00 2001 From: ArturJuxt <62830610+ArturJuxt@users.noreply.github.com> Date: Fri, 25 Dec 2020 17:29:30 +0400 Subject: [PATCH] fix README.md Fix prop | maskPlaceholder to maskChar --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f68e067..4091520 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ function DateInput(props) { | Name | Type | Default | Description | | :-----------------------------------------: | :-------------------------: | :-----: | :--------------------------------------------------------------------- | | **[`mask`](#mask)** | `{String\|Array}` | | Mask format | -| **[`maskPlaceholder`](#maskplaceholder)** | `{String}` | `_` | Placeholder to cover unfilled parts of the mask | +| **[`maskChar`](#maskphar)** | `{String}` | `_` | Placeholder to cover unfilled parts of the mask | | **[`alwaysShowMask`](#alwaysshowmask)** | `{Boolean}` | `false` | Whether mask prefix and placeholder should be displayed when input is empty and has no focus | | **[`beforeMaskedStateChange`](#beforemaskedstatechange)** | `{Function}` | | Function to modify value and selection before applying mask | | **[`children`](#children)** | `{ReactElement}` | | Custom render function for integration with other input components | @@ -69,16 +69,16 @@ return ; ``` -### `maskPlaceholder` +### `maskChar` ```jsx // Will be rendered as 12/--/-- - + // Will be rendered as 12/mm/yy - + // Will be rendered as 12/ - + ``` Character or string to cover unfilled parts of the mask. Default character is "\_". If set to `null` or empty string, unfilled parts will be empty as in a regular input. @@ -114,7 +114,7 @@ function beforeMaskedStateChange({ nextState }) { }; } -return ; +return ; ``` Please note that `beforeMaskedStateChange` executes more often than `onChange` and must be pure.