BlockNote icon indicating copy to clipboard operation
BlockNote copied to clipboard

Toolbar loses its position when custom item is selected

Open mohsin1993 opened this issue 1 year ago • 2 comments

Describe the bug Toolbar loses its posiition when custom items are selected

To Reproduce Select alert from dropdown (https://stackblitz.com/github/TypeCellOS/BlockNote/tree/main/examples/03-ui-components/03-formatting-toolbar-block-type-items?file=README.md)>

Misc

  • Node version:
  • Package manager:
  • Browser:
  • [ ] I'm a sponsor and would appreciate if you could look into this sooner than later 💖

mohsin1993 avatar Jul 25 '24 15:07 mohsin1993

Screenshot 2024-07-25 at 17 06 41

mohsin1993 avatar Jul 25 '24 15:07 mohsin1993

Thanks for reporting this, looks like the formatting toolbar is trying to calculate its position before the custom block is rendered.

matthewlipski avatar Aug 07 '24 14:08 matthewlipski

Is there any workaround available? The issue is still here unfortunately

justWalsdi avatar Jul 09 '25 15:07 justWalsdi

Which version of BlockNote are you running? I'd try updating to 0.33.0 if you're not on it already

matthewlipski avatar Jul 11 '25 11:07 matthewlipski

Currently using 0.33.0 and 0.32.0, in both projects issue can be reproduced. It also can be reproduced on the website. I opened an issue about this a few days ago (#1836) before I found this one.

I would appreciate if someone could point me to where the calculation is happening so I can investigate the issue further (:

Created next.js sandbox: https://codesandbox.io/p/devbox/ncc3jf

justWalsdi avatar Jul 11 '25 12:07 justWalsdi