Skip to content

Commit

Permalink
Don't disable menu item as it messes with focus and autoclosing
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Jun 8, 2023
1 parent dd65058 commit 64864ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/edit-site/src/components/global-styles/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function GlobalStylesRevisionsMenu() {
}, [] );
const { useGlobalStylesReset } = unlock( blockEditorPrivateApis );
const [ canReset, onReset ] = useGlobalStylesReset();
const { goTo, location } = useNavigator();
const { goTo } = useNavigator();
const { setEditorCanvasContainerView } = unlock(
useDispatch( editSiteStore )
);
Expand All @@ -149,7 +149,6 @@ function GlobalStylesRevisionsMenu() {
{ hasRevisions && (
<MenuItem
onClick={ loadRevisions }
disabled={ location?.path === '/revisions' }
icon={
<RevisionsCountBadge>
{ revisionsCount }
Expand Down

0 comments on commit 64864ec

Please sign in to comment.