Skip to content

Commit

Permalink
Site Editor: Don't disable the Save button (#42842)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored Aug 1, 2022
1 parent 79b78c6 commit a14080d
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions packages/edit-site/src/components/save-button/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,15 @@ export default function SaveButton( {
const disabled = ! isDirty || isSaving;

return (
<>
<Button
variant="primary"
className="edit-site-save-button__button"
aria-disabled={ disabled }
aria-expanded={ isEntitiesSavedStatesOpen }
disabled={ disabled }
isBusy={ isSaving }
onClick={ disabled ? undefined : openEntitiesSavedStates }
>
{ __( 'Save' ) }
</Button>
</>
<Button
variant="primary"
className="edit-site-save-button__button"
aria-disabled={ disabled }
aria-expanded={ isEntitiesSavedStatesOpen }
isBusy={ isSaving }
onClick={ disabled ? undefined : openEntitiesSavedStates }
>
{ __( 'Save' ) }
</Button>
);
}

0 comments on commit a14080d

Please sign in to comment.