input-format
Advanced tools
Comparing version 0.1.6 to 0.1.7
@@ -121,7 +121,14 @@ 'use strict'; | ||
if (onBlur) { | ||
onBlur((0, _extends3.default)({}, event, { | ||
var _event = (0, _extends3.default)({}, event, { | ||
target: (0, _extends3.default)({}, event.target, { | ||
value: this.input_controller.getParsedValue().value | ||
}) | ||
})); | ||
}); | ||
// For `redux-form` event detection. | ||
// https://github.com/erikras/redux-form/blob/v5/src/events/isEvent.js | ||
_event.stopPropagation = event.stopPropagation; | ||
_event.preventDefault = event.preventDefault; | ||
onBlur(_event); | ||
} | ||
@@ -128,0 +135,0 @@ } |
@@ -82,7 +82,14 @@ import _extends from 'babel-runtime/helpers/extends'; | ||
if (onBlur) { | ||
onBlur(_extends({}, event, { | ||
var _event = _extends({}, event, { | ||
target: _extends({}, event.target, { | ||
value: this.input_controller.getParsedValue().value | ||
}) | ||
})); | ||
}); | ||
// For `redux-form` event detection. | ||
// https://github.com/erikras/redux-form/blob/v5/src/events/isEvent.js | ||
_event.stopPropagation = event.stopPropagation; | ||
_event.preventDefault = event.preventDefault; | ||
onBlur(_event); | ||
} | ||
@@ -89,0 +96,0 @@ } |
{ | ||
"name": "input-format", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "Formatting user's text input on-the-fly", | ||
@@ -5,0 +5,0 @@ "main": "index.common.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
109752
1317