Skip to content

Commit

Permalink
[PR Feedback] Updated edit mode save button to be disabled when there…
Browse files Browse the repository at this point in the history
… are errors within the edit mode text input
  • Loading branch information
breehall committed Jul 28, 2023
1 parent 4083469 commit 3b905aa
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ const EditableTitleComponent: React.FC<EditableTitleProps> = ({ onSubmit, isLoad
setErrors([]);
},
},
saveButtonProps: { 'data-test-subj': 'editable-title-submit-btn' },
saveButtonProps: {
'data-test-subj': 'editable-title-submit-btn',
isDisabled: hasErrors,
},
cancelButtonProps: {
onClick: () => onCancel(),
'data-test-subj': 'editable-title-cancel-btn',
Expand Down

0 comments on commit 3b905aa

Please sign in to comment.