Fix <FormAction> external and prop definition

click handler shouldn't be required
This commit is contained in:
Ingo Schommer 2016-04-12 23:45:19 +12:00 committed by Damian Mooyman
parent 107e38b7a7
commit f7237a9936
2 changed files with 3 additions and 1 deletions

View File

@ -13,6 +13,7 @@ class FormActionComponent extends SilverStripeComponent {
type: this.props.type,
className: this.getButtonClasses(),
disabled: this.props.disabled,
onClick: this.handleClick,
};
if (typeof this.props.id !== 'undefined') {
@ -100,7 +101,7 @@ class FormActionComponent extends SilverStripeComponent {
FormActionComponent.propTypes = {
id: React.PropTypes.string,
handleClick: React.PropTypes.func.isRequired,
handleClick: React.PropTypes.func,
label: React.PropTypes.string,
type: React.PropTypes.string,
loading: React.PropTypes.bool,

View File

@ -358,6 +358,7 @@ gulp.task('bundle-framework', function bundleBoot() {
.external('components/action-button/index')
.external('components/north-header/index')
.external('components/form-builder/index')
.external('components/form-action/index')
.external('deep-freeze')
.external('components/grid-field/index')
.external('i18n')