Skip to content

Commit

Permalink
Fix ReactJS value issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nosir committed Aug 3, 2016
1 parent 061432e commit 647920e
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"form",
"input"
],
"version": "0.6.1",
"version": "0.6.2",
"author": {
"name": "Max Huang",
"email": "[email protected]",
Expand Down
2 changes: 2 additions & 0 deletions dist/cleave-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ return /******/ (function(modules) { // webpackBootstrap
event.target.rawValue = Util.stripDelimiters(pps.result, pps.delimiter, pps.delimiters);
}

event.target.value = pps.result;

owner.registeredEvents.onChange(event);
},

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

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/cleave.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion doc/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ When delimiters array is defined, single [delimiter](#delimiter) option is ignor
```js
new Cleave('.my-input', {
blocks: [3, 3, 3, 2],
delimiter: ['.', '.', '-']
delimiters: ['.', '.', '-']
});
```

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"form",
"input"
],
"version": "0.6.1",
"version": "0.6.2",
"author": {
"name": "Max Huang",
"url": "http://github.com/nosir",
Expand Down
2 changes: 2 additions & 0 deletions src/Cleave.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ var Cleave = React.createClass({
event.target.rawValue = Util.stripDelimiters(pps.result, pps.delimiter, pps.delimiters);
}

event.target.value = pps.result;

owner.registeredEvents.onChange(event);
},

Expand Down

0 comments on commit 647920e

Please sign in to comment.