Comparing version 0.1.0 to 0.1.1
@@ -90,3 +90,3 @@ 'use strict'; | ||
if (!isTextField(e.target)) { | ||
onChange(value); | ||
onChange(value, e); | ||
return; | ||
@@ -100,3 +100,3 @@ } | ||
}); | ||
onChange(value); | ||
onChange(value, e); | ||
isInnerChangeFromOnChange = false; | ||
@@ -113,3 +113,3 @@ return; | ||
}); | ||
onChange(value); | ||
onChange(value, e); | ||
} else { | ||
@@ -138,3 +138,3 @@ this.setState({ inputValue: value }); | ||
this.setState({ innerValue: value }); | ||
onChange(value); | ||
onChange(value, e); | ||
} | ||
@@ -148,3 +148,3 @@ | ||
}); | ||
onChange(value); | ||
onChange(value, e); | ||
} | ||
@@ -151,0 +151,0 @@ |
@@ -90,3 +90,3 @@ 'use strict'; | ||
this.setState({ checkResult: checkResult, value: value }); | ||
onFieldChange(name, value); | ||
onFieldChange(name, value, event); | ||
onChange && onChange(value, event); | ||
@@ -93,0 +93,0 @@ } |
@@ -229,3 +229,3 @@ 'use strict'; | ||
key: 'handleFieldChange', | ||
value: function handleFieldChange(name, value) { | ||
value: function handleFieldChange(name, value, event) { | ||
var _props4 = this.props, | ||
@@ -236,3 +236,3 @@ onChange = _props4.onChange, | ||
var values = Object.assign({}, this.state.values, defaultValues, _defineProperty({}, name, value)); | ||
onChange && onChange(values); | ||
onChange && onChange(values, event); | ||
} | ||
@@ -239,0 +239,0 @@ }, { |
@@ -9,3 +9,3 @@ 'use strict'; | ||
// Opera 8.0+ | ||
var isOpera = exports.isOpera = !!window.opr && !!opr.addons || !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0; | ||
var isOpera = exports.isOpera = !!window.opr && !!window.opr.addons || !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0; | ||
@@ -18,4 +18,5 @@ // Firefox 1.0+ | ||
return p.toString() === '[object SafariRemoteNotification]'; | ||
}(!window['safari'] || safari.pushNotification); | ||
}(!window.safari || window.safari.pushNotification); | ||
/*eslint-disable */ | ||
// Internet Explorer 6-11 | ||
@@ -22,0 +23,0 @@ var isIE = /*@cc_on!@*/exports.isIE = false || !!document.documentMode; |
@@ -14,2 +14,3 @@ 'use strict'; | ||
function createChainableTypeChecker(validate) { | ||
function checkType(isRequired, props, propName, componentName) { | ||
@@ -16,0 +17,0 @@ componentName = componentName || '<<anonymous>>'; |
{ | ||
"name": "form-lib", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Form component for React", | ||
@@ -84,3 +84,3 @@ "main": "lib/index.js", | ||
"react-hot-loader": "^3.0.0-beta.6", | ||
"rsuite": "^1.0.14", | ||
"rsuite": "1.1.3", | ||
"rsuite-affix": "^1.0.3", | ||
@@ -87,0 +87,0 @@ "rsuite-picker": "^0.3.3", |
32023
586