mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Fix <FormAction> external and prop definition
click handler shouldn't be required
This commit is contained in:
parent
107e38b7a7
commit
f7237a9936
@ -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,
|
||||
|
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user