Skip to content

Commit

Permalink
Version bump for PR #228
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yadav committed Sep 30, 2018
1 parent e28ef72 commit dcee09a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions dist/react-number-format.es.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* react-number-format - 3.6.0
* react-number-format - 3.6.1
* Author : Sudhanshu Yadav
* Copyright (c) 2016, 2018 to Sudhanshu Yadav, released under the MIT license.
* https://github.com/s-yadav/react-number-format
Expand Down Expand Up @@ -1102,7 +1102,7 @@ function (_React$Component) {
var leftBound = !!format ? 0 : prefix.length;
var rightBound = lastValue.length - (!!format ? 0 : suffix.length);

if (value.length > lastValue.length || !value.length || start === end || start === 0 && end === lastValue.length || selectionStart === 0 && selectionEnd === lastValue.length || start === leftBound && end === rightBound || selectionStart === leftBound && selectionEnd === rightBound) {
if (value.length > lastValue.length || !value.length || start === end || selectionStart === 0 && selectionEnd === lastValue.length || selectionStart === leftBound && selectionEnd === rightBound) {
return value;
} //if format got deleted reset the value to last value

Expand Down
4 changes: 2 additions & 2 deletions dist/react-number-format.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* react-number-format - 3.6.0
* react-number-format - 3.6.1
* Author : Sudhanshu Yadav
* Copyright (c) 2016, 2018 to Sudhanshu Yadav, released under the MIT license.
* https://github.com/s-yadav/react-number-format
Expand Down Expand Up @@ -1108,7 +1108,7 @@
var leftBound = !!format ? 0 : prefix.length;
var rightBound = lastValue.length - (!!format ? 0 : suffix.length);

if (value.length > lastValue.length || !value.length || start === end || start === 0 && end === lastValue.length || selectionStart === 0 && selectionEnd === lastValue.length || start === leftBound && end === rightBound || selectionStart === leftBound && selectionEnd === rightBound) {
if (value.length > lastValue.length || !value.length || start === end || selectionStart === 0 && selectionEnd === lastValue.length || selectionStart === leftBound && selectionEnd === rightBound) {
return value;
} //if format got deleted reset the value to last value

Expand Down
4 changes: 2 additions & 2 deletions dist/react-number-format.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/number_format.js
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ function (_React$Component) {
var leftBound = !!format ? 0 : prefix.length;
var rightBound = lastValue.length - (!!format ? 0 : suffix.length);

if (value.length > lastValue.length || !value.length || start === end || start === 0 && end === lastValue.length || selectionStart === 0 && selectionEnd === lastValue.length || start === leftBound && end === rightBound || selectionStart === leftBound && selectionEnd === rightBound) {
if (value.length > lastValue.length || !value.length || start === end || selectionStart === 0 && selectionEnd === lastValue.length || selectionStart === leftBound && selectionEnd === rightBound) {
return value;
} //if format got deleted reset the value to last value

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-number-format",
"description": "React component to format number in an input or as a text.",
"version": "3.6.0",
"version": "3.6.1",
"main": "lib/number_format.js",
"author": "Sudhanshu Yadav",
"license": "MIT",
Expand Down

0 comments on commit dcee09a

Please sign in to comment.