Describe the bug
My team made two custom blocks and insert to slash menu.
slashMenuItems: [
...getDefaultReactSlashMenuItems(),
insertCheckBoxBlock,
insertChartBlock,
],
insertCheckBoxBlock's group is "Work", and insertChartBlock's group is "Media".
like that:

As long as I selected everything with the mouse, there was no problems, but with keyboard, it insert incorrect thing.
I can work around this temporarily by matching the values in your code to the visible values.
like this:
slashMenuItems: [
...getDefaultReactSlashMenuItems(),
insertChartBlock,
insertCheckBoxBlock,
],
However, I am reporting this because it seems clear that this was not intended.
To Reproduce
- Make some SlashMenuItem. Group must be "Headings".
like that:
export const testBlock: ReactSlashMenuItem<
BlockSchemaWithBlock<"test", typeof CheckBoxBlockSpec.config>
> = {
name: "test",
execute: () => {},
group: "Headings",
icon: <div />,
}
- Insert the Item to slashMenutems.
like that:
slashMenuItems: [
...getDefaultReactSlashMenuItems(),
testBlock,
],
- Move to browser editor and add some 'basic blocks' by slash menu with 'keyboard'.

Misc
Describe the bug
My team made two custom blocks and insert to slash menu.
insertCheckBoxBlock's group is "Work", and insertChartBlock's group is "Media".

like that:
As long as I selected everything with the mouse, there was no problems, but with keyboard, it insert incorrect thing.
I can work around this temporarily by matching the values in your code to the visible values.
like this:
However, I am reporting this because it seems clear that this was not intended.
To Reproduce
like that:
like that:
Misc