Skip to content

Commit 3a352b8

Browse files
committed
v1.1.0 Release (Features and bug fixes)
1 parent cae25c7 commit 3a352b8

File tree

3 files changed

+5
-19
lines changed

3 files changed

+5
-19
lines changed

dist/react-number-format.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* react-number-format - 1.1.0-alpha2
2+
* react-number-format - 1.1.0
33
* Author : Sudhanshu Yadav
44
* Copyright (c) 2016,2017 to Sudhanshu Yadav - ignitersworld.com , released under the MIT license.
55
*/
@@ -120,7 +120,6 @@ return /******/ (function(modules) { // webpackBootstrap
120120
value: _this.formatInput(props.value).formattedValue
121121
};
122122
_this.onChange = _this.onChange.bind(_this);
123-
_this.onInput = _this.onInput.bind(_this);
124123
_this.onKeyDown = _this.onKeyDown.bind(_this);
125124
return _this;
126125
}
@@ -331,11 +330,6 @@ return /******/ (function(modules) { // webpackBootstrap
331330
value: function onChange(e) {
332331
this.onChangeHandler(e, this.props.onChange);
333332
}
334-
}, {
335-
key: 'onInput',
336-
value: function onInput(e) {
337-
this.onChangeHandler(e, this.props.onInput);
338-
}
339333
}, {
340334
key: 'onKeyDown',
341335
value: function onKeyDown(e) {
@@ -376,9 +370,8 @@ return /******/ (function(modules) { // webpackBootstrap
376370
});
377371

378372
var inputProps = _extends({}, props, {
379-
type: 'tel',
373+
type: 'text',
380374
value: this.state.value,
381-
onInput: this.onChange,
382375
onChange: this.onChange,
383376
onKeyDown: this.onKeyDown
384377
});

dist/react-number-format.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/number_format.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ var NumberFormat = function (_React$Component) {
5252
value: _this.formatInput(props.value).formattedValue
5353
};
5454
_this.onChange = _this.onChange.bind(_this);
55-
_this.onInput = _this.onInput.bind(_this);
5655
_this.onKeyDown = _this.onKeyDown.bind(_this);
5756
return _this;
5857
}
@@ -263,11 +262,6 @@ var NumberFormat = function (_React$Component) {
263262
value: function onChange(e) {
264263
this.onChangeHandler(e, this.props.onChange);
265264
}
266-
}, {
267-
key: 'onInput',
268-
value: function onInput(e) {
269-
this.onChangeHandler(e, this.props.onInput);
270-
}
271265
}, {
272266
key: 'onKeyDown',
273267
value: function onKeyDown(e) {
@@ -308,9 +302,8 @@ var NumberFormat = function (_React$Component) {
308302
});
309303

310304
var inputProps = _extends({}, props, {
311-
type: 'tel',
305+
type: 'text',
312306
value: this.state.value,
313-
onInput: this.onChange,
314307
onChange: this.onChange,
315308
onKeyDown: this.onKeyDown
316309
});

0 commit comments

Comments
 (0)