tenjin-ui-kit 0.3.5 → 0.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -79,7 +79,9 @@ var Input = function Input(_ref) {
79
79
  disabled: isDisabled,
80
80
  onBlur: function onBlur(e) {
81
81
  setTimeout(function () {
82
- rest.onBlur(e);
82
+ if (e && typeof rest.onBlur === "function") {
83
+ rest.onBlur(e);
84
+ }
83
85
  }, onBlurDelay || 100);
84
86
  },
85
87
  autoFocus: !!autoFocus ? rest.value ? rest.value : true : false,
@@ -112,7 +114,9 @@ var Input = function Input(_ref) {
112
114
  error: true,
113
115
  onBlur: function onBlur(e) {
114
116
  setTimeout(function () {
115
- rest.onBlur(e);
117
+ if (e && typeof rest.onBlur === "function") {
118
+ rest.onBlur(e);
119
+ }
116
120
  }, onBlurDelay || 100);
117
121
  },
118
122
  autoFocus: !!autoFocus ? rest.value ? rest.value : true : false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tenjin-ui-kit",
3
- "version": "0.3.5",
3
+ "version": "0.3.7",
4
4
  "repository": {
5
5
  "url": "https://gitlab.com/yethi/react/tenjin-ui-kit.git"
6
6
  },