#8408·tiptap

BubbleMenu/FloatingMenu props (data-*, aria-*, style) missing on menu element in production builds since 3.30.3

Author: phillip-propstepCreated Sep 29, 2026Updated Sep 29, 2026
Labelsstatus: triagearea: reactcomplexity: easyimpact: medium

Affected Packages

react

Tiptap Version

3.31.3

Browser Used

Chrome

What happened?

We use React Email's new editor package that uses tiptap behind the scenes.

Props passed to BubbleMenu and FloatingMenu (data-*, aria-*, style) are missing on the menu element in production builds. In dev builds they are there. className still works.

We use Next.js 16.3.4 (Turbopack) with React 19 (and React compiler). Libraries that style the menu through a data attribute break. For us, @react-email/editor's bubble menu has no background or border, so it looks transparent.

It seems that since tiptap version 3.30.3 index.js has this in syncAttributes and syncStyles:

javascript
(/* @__PURE__ */ new Set([...Object.keys(prevProps), ...Object.keys(nextProps)])).forEach((key) => { ... })

Next's SWC drops the parentheses and then the pure annotation covers the whole .forEach(...) call, and the minifier removes it. In 3.30.2 the Set was stored in a const first, which seems to make it work.

Expected Behavior

Props passed to the menu components end up on the menu element in minified production builds too.

Reproducible Example URL (Optional)

No response

Additional Context (Optional)

No response