Skip to content

Commit

Permalink
version 0.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sanniassin authored and sanniassin committed Jul 6, 2016
1 parent ce2d880 commit 4cbbd18
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions build/InputElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

var React = require("react");

var InputElement = React.createClass({
Expand Down Expand Up @@ -780,10 +782,16 @@ var InputElement = React.createClass({
render: function () {
var _this7 = this;

var props = this.props;
var _props = this.props;
var mask = _props.mask;
var alwaysShowMask = _props.alwaysShowMask;
var maskChar = _props.maskChar;
var formatChars = _props.formatChars;

var props = _objectWithoutProperties(_props, ["mask", "alwaysShowMask", "maskChar", "formatChars"]);

var componentKeys = ["mask", "alwaysShowMask", "maskChar", "formatChars"];
if (this.mask) {
var componentKeys = ["mask", "alwaysShowMask", "maskChar", "formatChars"];
var handlersKeys = ["onFocus", "onBlur", "onChange", "onKeyDown", "onKeyPress", "onPaste"];
props = _extends({}, props);
componentKeys.forEach(function (key) {
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-input-mask",
"description": "Masked input component for React",
"version": "0.7.1",
"version": "0.7.2",
"homepage": "https://github.com/sanniassin/react-input-mask",
"license": "MIT",
"author": "Nikita Lobachev <[email protected]>",
Expand Down

0 comments on commit 4cbbd18

Please sign in to comment.