cf-component-button
Advanced tools
Comparing version 7.3.6 to 7.3.7
@@ -6,2 +6,13 @@ # Change Log | ||
<a name="7.3.7"></a> | ||
## [7.3.7](http://stash.cfops.it:7999/www/cf-ux/compare/cf-component-button@7.3.6...cf-component-button@7.3.7) (2018-03-12) | ||
### Bug Fixes | ||
* **cf-component-button:** UI-440 add check against non-existant onClick ([4158669](http://stash.cfops.it:7999/www/cf-ux/commits/4158669)) | ||
<a name="7.3.6"></a> | ||
@@ -8,0 +19,0 @@ ## [7.3.6](http://stash.cfops.it:7999/www/cf-ux/compare/cf-component-button@7.3.5...cf-component-button@7.3.6) (2018-03-12) |
@@ -205,4 +205,2 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
value: function render() { | ||
var _this2 = this; | ||
var _props = this.props, | ||
@@ -214,3 +212,4 @@ submit = _props.submit, | ||
testId = _props.testId, | ||
children = _props.children; | ||
children = _props.children, | ||
onClick = _props.onClick; | ||
@@ -238,3 +237,5 @@ | ||
_this2.props.onClick(e); | ||
if (onClick) { | ||
onClick(e); | ||
} | ||
}; | ||
@@ -241,0 +242,0 @@ |
@@ -206,3 +206,4 @@ 'use strict'; | ||
testId, | ||
children | ||
children, | ||
onClick | ||
} = this.props; | ||
@@ -225,3 +226,5 @@ | ||
this.props.onClick(e); | ||
if (onClick) { | ||
onClick(e); | ||
} | ||
}; | ||
@@ -228,0 +231,0 @@ |
{ | ||
"name": "cf-component-button", | ||
"description": "Cloudflare Button Component", | ||
"version": "7.3.6", | ||
"version": "7.3.7", | ||
"main": "lib/index.js", | ||
@@ -6,0 +6,0 @@ "module": "es/index.js", |
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
52093
1000