Skip to content

Commit d5517d6

Browse files
committed
Release v 1.2.1: Have added the prop isFocusingOnLastByClickIfFilled for focusing on the last input box if the code is full, and any input box clicked
1 parent 845f5ae commit d5517d6

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,11 @@ Example with only bottom borders:
111111
| Property | Type | Default | Description |
112112
|----------|:-------:|:-----:|----------|
113113
| <b>`codeLength`</b> | number | 4 | Length of input code |
114+
| <b>`inputType`</b> | string | tel | Type of the input DOM elements like `<input [type]="inputType"/>` default '`tel'` |
114115
| <b>`isCodeHidden`</b> | boolean | false | When `true` inputted code chars will be shown as asterisks (points) |
115116
| <b>`isNonDigitsCode`</b> | boolean | false | When `true` inputted code can contain any char and not only digits from 0 to 9. If the input parameter <b>`code`</b> contains non digits chars and `isNonDigitsCode` is `false` the value will be ignored |
116117
| <b>`isPrevFocusableAfterClearing`</b> | boolean | true | When `true` after the input value deletion the caret will be moved to the previous input immediately. If `false` then after the input value deletion the caret will stay on the current input and be moved to the previous input only if the current input is empty |
117-
| <b>`inputType`</b> | string | tel | Type of the input DOM elements like `<input [type]="inputType"/>` default '`tel'` |
118+
| <b>`isFocusingOnLastByClickIfFilled`</b> | boolean | false | When `true` and the code is filled then the focus will be moved to the last input element when clicked |
118119
| <b>`code`</b> | string / number | - | The input code value for the component. If the parameter contains non digits chars and `isNonDigitsCode` is `false` the value will be <b>ignored |
119120

120121
#### Events

angular-code-input/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.2.1 (20.06.2020)
2+
**Note:** Have added the prop isFocusingOnLastByClickIfFilled for focusing on the last input box
3+
if the code is full, and any input box clicked.
4+
15
# 1.2.0 (20.05.2020)
26
**Note:** Have added the ability to paste code from the clipboard.
37

angular-code-input/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,11 @@ Example with only bottom borders:
111111
| Property | Type | Default | Description |
112112
|----------|:-------:|:-----:|----------|
113113
| <b>`codeLength`</b> | number | 4 | Length of input code |
114+
| <b>`inputType`</b> | string | tel | Type of the input DOM elements like `<input [type]="inputType"/>` default '`tel'` |
114115
| <b>`isCodeHidden`</b> | boolean | false | When `true` inputted code chars will be shown as asterisks (points) |
115116
| <b>`isNonDigitsCode`</b> | boolean | false | When `true` inputted code can contain any char and not only digits from 0 to 9. If the input parameter <b>`code`</b> contains non digits chars and `isNonDigitsCode` is `false` the value will be ignored |
116117
| <b>`isPrevFocusableAfterClearing`</b> | boolean | true | When `true` after the input value deletion the caret will be moved to the previous input immediately. If `false` then after the input value deletion the caret will stay on the current input and be moved to the previous input only if the current input is empty |
117-
| <b>`inputType`</b> | string | tel | Type of the input DOM elements like `<input [type]="inputType"/>` default '`tel'` |
118+
| <b>`isFocusingOnLastByClickIfFilled`</b> | boolean | false | When `true` and the code is filled then the focus will be moved to the last input element when clicked |
118119
| <b>`code`</b> | string / number | - | The input code value for the component. If the parameter contains non digits chars and `isNonDigitsCode` is `false` the value will be <b>ignored |
119120

120121
#### Events

angular-code-input/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-code-input",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "Code or pin code input for Angular 7, 8, 9 + / Ionic 4, 5 + projects",
55
"keywords": ["angular", "pincode", "angular-pincode", "otp", "code-input", "angular-otp", "ionic-otp", "ionic-code-input", "ionic-pincode"],
66
"author": "Alexander Dmitrenko",

0 commit comments

Comments
 (0)