Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Custom DragHandleMenu and SideMenu at the same time but didn't show custom DragHandleMenu #688

Open
julzheng opened this issue Apr 4, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@julzheng
Copy link

julzheng commented Apr 4, 2024

Describe the bug
I tried to use custom SideMenu and DragHandleMenu together, but the custom DragHandleMenu didn't show

To Reproduce
Just try to mix/use both example from docs that is custom SideMenu and custom DraghandleMenu

<BlockNoteView editor={editor} formattingToolbar={false} linkToolbar={false} imageToolbar={false} sideMenu={false} slashMenu={false} tableHandles={false}> <SideMenuController sideMenu={(props) => ( <SideMenu {...props} dragHandleMenu={(props) => ( <DragHandleMenu {...props}> <DragHandleMenuItem onClick={() => { editor.updateBlock(props.block, { type: 'paragraph' }); }}> Reset Type </DragHandleMenuItem> </DragHandleMenu> )}> <RemoveBlockButton {...props} /> <DragHandleButton {...props} /> </SideMenu> )} /> </BlockNoteView>

Misc

  • Node version: 21.6.2
  • Package manager: 10.2.4
  • Vite: 5.1.4
  • Blocknote: 0.12.4
@julzheng julzheng added the bug Something isn't working label Apr 4, 2024
@YousefED
Copy link
Collaborator

YousefED commented Apr 8, 2024

Interesting. Could you add a stackblitz / codesandbox for this?

@julzheng
Copy link
Author

julzheng commented Apr 9, 2024

Interesting. Could you add a stackblitz / codesandbox for this?

https://stackblitz.com/edit/bn-custom-dhm-sm?file=src%2FApp.tsx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants