Skip to content

"Editor Preferences" and "Keyboard shortcuts" commands don't work #64004

@t-hamano

Description

@t-hamano

Description

I found that in both the post editor and site editor, running the following two commands did not launch the dialog:

  • Editor Preferences
  • Keyboard shortcuts

Both commands launch a modal dialog. This is very strange, but I found that it happens when StrictMode is enabled.

Namely, the following parts. When I turn off StrictMode, these two commands work again.

root.render(
<StrictMode>
<Layout
settings={ settings }
postId={ postId }
postType={ postType }
initialEdits={ initialEdits }
/>
</StrictMode>
);

root.render(
<StrictMode>
<App />
</StrictMode>
);

Step-by-step reproduction instructions

  • Launch the command palette.
  • Run "Editor Preferences" or "Keyboard shortcuts"

Screenshots, screen recording, code snippet

eccfc1659f774e00adae86d1027dbe80.mp4

Environment info

No response

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Metadata

Metadata

Assignees

Labels

[Package] Commands/packages/commands[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions