Skip to content

Commit

Permalink
[Issue-208] Trigger init when no options is passed in
Browse files Browse the repository at this point in the history
  • Loading branch information
nosir committed Jul 30, 2017
1 parent 1f9ec22 commit b10e757
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 8 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.9.1",
"version": "0.9.2",
"author": {
"name": "Max Huang",
"email": "[email protected]",
Expand Down
2 changes: 2 additions & 0 deletions dist/cleave-angular.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ return /******/ (function(modules) { // webpackBootstrap

// no need to use this lib
if (!pps.numeral && !pps.phone && !pps.creditCard && !pps.date && (pps.blocksLength === 0 && !pps.prefix)) {
owner.onInput(pps.initValue);

return;
}

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

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions dist/cleave-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ return /******/ (function(modules) { // webpackBootstrap

// so no need for this lib at all
if (!pps.numeral && !pps.phone && !pps.creditCard && !pps.date && pps.blocksLength === 0 && !pps.prefix) {
owner.onInput(pps.initValue);
owner.registeredEvents.onInit(owner);

return;
}

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

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/cleave.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ return /******/ (function(modules) { // webpackBootstrap

// no need to use this lib
if (!pps.numeral && !pps.phone && !pps.creditCard && !pps.date && (pps.blocksLength === 0 && !pps.prefix)) {
owner.onInput(pps.initValue);

return;
}

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

Large diffs are not rendered by default.

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.9.1",
"version": "0.9.2",
"author": {
"name": "Max Huang",
"url": "http://github.com/nosir",
Expand Down
2 changes: 2 additions & 0 deletions src/Cleave.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ Cleave.prototype = {

// no need to use this lib
if (!pps.numeral && !pps.phone && !pps.creditCard && !pps.date && (pps.blocksLength === 0 && !pps.prefix)) {
owner.onInput(pps.initValue);

return;
}

Expand Down
3 changes: 3 additions & 0 deletions src/Cleave.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ var Cleave = CreateReactClass({

// so no need for this lib at all
if (!pps.numeral && !pps.phone && !pps.creditCard && !pps.date && (pps.blocksLength === 0 && !pps.prefix)) {
owner.onInput(pps.initValue);
owner.registeredEvents.onInit(owner);

return;
}

Expand Down

0 comments on commit b10e757

Please sign in to comment.