Disable list title validation button when list title is empty (#11475)

This commit is contained in:
ThibG 2019-08-03 19:10:39 +02:00 committed by Eugen Rochko
parent c1bc34da04
commit 3f7614f98a
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ const messages = defineMessages({
const mapStateToProps = state => ({
value: state.getIn(['listEditor', 'title']),
disabled: !state.getIn(['listEditor', 'isChanged']),
disabled: !state.getIn(['listEditor', 'isChanged']) || !state.getIn(['listEditor', 'title']),
});
const mapDispatchToProps = dispatch => ({

View file

@ -66,7 +66,7 @@ class NewListForm extends React.PureComponent {
</label>
<IconButton
disabled={disabled}
disabled={disabled || !value}
icon='plus'
title={title}
onClick={this.handleClick}