Skip to content

Commit

Permalink
fix #5: get example app working again
Browse files Browse the repository at this point in the history
one can build with ```npm run build-example``` and then point your browser to examples/index.html
  • Loading branch information
ericblade committed Jan 8, 2022
1 parent 112b659 commit 90be09d
Show file tree
Hide file tree
Showing 12 changed files with 42,116 additions and 3,133 deletions.
7 changes: 6 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
{ "presets": ["es2015", "react", "stage-3"] }
{
"presets": [
"@babel/preset-env",
"@babel/preset-react"
]
}
11 changes: 6 additions & 5 deletions dist/amd/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,10 @@ define("index", ["require", "exports", "react", "mask"], function (require, expo
* @param nextProps
* @see https://facebook.github.io/react/docs/component-specs.html#updating-componentwillreceiveprops
*/
/* static getDerivedStateFromProps(nextProps) {
console.warn('* getDerivedStateFromProps', nextProps.value, nextProps.maskedValue);
return CurrencyInput.prepareProps(nextProps);
}
*/
// static getDerivedStateFromProps(nextProps) {
// console.warn('* getDerivedStateFromProps', nextProps.value, nextProps.maskedValue);
// return CurrencyInput.prepareProps(nextProps);
// }
/**
* Component lifecycle function.
* @returns {XML}
Expand Down Expand Up @@ -308,6 +307,8 @@ define("index", ["require", "exports", "react", "mask"], function (require, expo
else {
console.warn('* setSelectionRange not activeElement!', document.activeElement, node);
}
this.inputSelectionStart = start;
this.inputSelectionEnd = end;
};
/**
* onChange Event Handler
Expand Down
11 changes: 6 additions & 5 deletions dist/cjs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,10 @@ var CurrencyInput = /** @class */ (function (_super) {
* @param nextProps
* @see https://facebook.github.io/react/docs/component-specs.html#updating-componentwillreceiveprops
*/
/* static getDerivedStateFromProps(nextProps) {
console.warn('* getDerivedStateFromProps', nextProps.value, nextProps.maskedValue);
return CurrencyInput.prepareProps(nextProps);
}
*/
// static getDerivedStateFromProps(nextProps) {
// console.warn('* getDerivedStateFromProps', nextProps.value, nextProps.maskedValue);
// return CurrencyInput.prepareProps(nextProps);
// }
/**
* Component lifecycle function.
* @returns {XML}
Expand Down Expand Up @@ -211,6 +210,8 @@ var CurrencyInput = /** @class */ (function (_super) {
else {
console.warn('* setSelectionRange not activeElement!', document.activeElement, node);
}
this.inputSelectionStart = start;
this.inputSelectionEnd = end;
};
/**
* onChange Event Handler
Expand Down
11 changes: 6 additions & 5 deletions dist/es2015/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,10 @@ class CurrencyInput extends React.Component {
* @param nextProps
* @see https://facebook.github.io/react/docs/component-specs.html#updating-componentwillreceiveprops
*/
/* static getDerivedStateFromProps(nextProps) {
console.warn('* getDerivedStateFromProps', nextProps.value, nextProps.maskedValue);
return CurrencyInput.prepareProps(nextProps);
}
*/
// static getDerivedStateFromProps(nextProps) {
// console.warn('* getDerivedStateFromProps', nextProps.value, nextProps.maskedValue);
// return CurrencyInput.prepareProps(nextProps);
// }
/**
* Component lifecycle function.
* @returns {XML}
Expand Down Expand Up @@ -178,6 +177,8 @@ class CurrencyInput extends React.Component {
else {
console.warn('* setSelectionRange not activeElement!', document.activeElement, node);
}
this.inputSelectionStart = start;
this.inputSelectionEnd = end;
}
/**
* onChange Event Handler
Expand Down
11 changes: 6 additions & 5 deletions dist/esm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,10 @@ var CurrencyInput = /** @class */ (function (_super) {
* @param nextProps
* @see https://facebook.github.io/react/docs/component-specs.html#updating-componentwillreceiveprops
*/
/* static getDerivedStateFromProps(nextProps) {
console.warn('* getDerivedStateFromProps', nextProps.value, nextProps.maskedValue);
return CurrencyInput.prepareProps(nextProps);
}
*/
// static getDerivedStateFromProps(nextProps) {
// console.warn('* getDerivedStateFromProps', nextProps.value, nextProps.maskedValue);
// return CurrencyInput.prepareProps(nextProps);
// }
/**
* Component lifecycle function.
* @returns {XML}
Expand Down Expand Up @@ -206,6 +205,8 @@ var CurrencyInput = /** @class */ (function (_super) {
else {
console.warn('* setSelectionRange not activeElement!', document.activeElement, node);
}
this.inputSelectionStart = start;
this.inputSelectionEnd = end;
};
/**
* onChange Event Handler
Expand Down
Loading

0 comments on commit 90be09d

Please sign in to comment.