Skip to content

Commit

Permalink
Merge pull request #69 from wysher/fix/ListField-validate-on-add
Browse files Browse the repository at this point in the history
fix(ListField): validate triggered on Add button click
  • Loading branch information
mprzodala authored Sep 18, 2018
2 parents 47c9642 + f831021 commit d1029c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/ListField.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ export class ListField extends React.Component {
<button
onClick={removeItemAction}
className={className}
type="button"
>
{value || 'Remove'}
</button>
Expand Down Expand Up @@ -194,6 +195,7 @@ export class ListField extends React.Component {
{!hideAddButton && isAddAllowed && <button
onClick={this.addListElement}
className={addButton.className}
type="button"
>
{addButton.value || 'Add'}
</button>}
Expand Down

0 comments on commit d1029c3

Please sign in to comment.