Skip to content

Commit

Permalink
fix: Album creation button onClick action was broken
Browse files Browse the repository at this point in the history
old button has `type submit` by default, so we need to add it
manually when using new buttons
  • Loading branch information
JF-Cozy committed Jun 11, 2024
1 parent dae5d36 commit ea3c644
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/photos/ducks/albums/components/CreateAlbumForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export class CreateAlbumForm extends Component {
value={this.state.name}
/>
<Button
type="submit"
className={styles['create-button']}
disabled={this.state.isSubmitDisabled || this.state.isBusy}
aria-busy={this.state.isBusy}
Expand Down

0 comments on commit ea3c644

Please sign in to comment.