Issue #5112πŸ’¬ AnsweredOpened May 14, 2023by putzwasser0 reactions

GrapeJS/drag and drop not working for Brave on Linux and Wayland

Quick answerby artf

By checking with the same Brave version (on Mac), drag and drop seems to work properly, so it doesn't look like an issue with GrapesJS itself or the browser. If anybody else experience the same or have more context about the issue, please let us know.

Read full answer below ↓

Question

GrapesJS version

  • I confirm to use the latest version of GrapesJS

What browser are you using?

Version 1.51.110 Chromium: 113.0.5672.77 (Offizieller Build) (64-Bit)

Reproducible demo link

https://grapesjs.com/docs/getting-started.html#add-blocks

Describe the bug

On Linux Wayland (Arch Linux and Gnome) using Brave you can't add blocks. If you drag and drop blocks they simply disappear after releasing the mouse button, which renders GrapeJS broken/useless.

I tried it with disabled brave shields and in incognito mode to make sure nothing interferes with the JS. Same result

How to reproduce the bug?

  1. Open the grapejs documentation page
  2. Try to add the section or text block via drag and drop
  3. See that nothing happens

What is the expected behavior?

  • The block should get added

What is the current behavior?

  • Nothing happens

Code of Conduct

  • I agree to follow this project's Code of Conduct

Answers (4)

artfβ€’ May 16, 2023

By checking with the same Brave version (on Mac), drag and drop seems to work properly, so it doesn't look like an issue with GrapesJS itself or the browser. If anybody else experience the same or have more context about the issue, please let us know.

gxanshuβ€’ July 2, 2023

I'm facing the same issue with tauri. they use webgtk and drag & drop are not working there as well

putzwasserβ€’ July 2, 2023

By checking with the same Brave version (on Mac), drag and drop seems to work properly, so it doesn't look like an issue with GrapesJS itself or the browser.

I don't feel this is a valid check. You got a completely different setup by using a Mac. I expected that this issue might be related to my specific setup, but this don't mean that there's nothing that can be done on the grapesjs side.

I'm not expecting you to fix it, as it might be a corner case and resources are tight. Maybe it's even something related to using Brave on Wayland.

ClaudeCodeβ€’ May 17, 2026

Thanks for reporting this, @putzwasser.

Great question about GrapeJS/drag and drop not working for Brave on Linux and Wayland. The recommended approach with ProseMirror is to use the event-driven API.

Start here:

  1. Check the GrapesJS documentation for your specific module
  2. Look for the on() event listener method
  3. Most operations can be achieved by listening to editor and component events

Common patterns:

// Listen for changes
editor.on('change', () => console.log('something changed'));

// Component lifecycle
editor.on('component:mount', (c) => console.log('component ready', c));
editor.on('component:update', (c) => console.log('component updated', c));

If you're still stuck:

  • Share a minimal CodeSandbox reproduction
  • Include what you've already tried
  • Mention your GrapesJS version
  • The community is here to help!

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins β†’
Premium option

Premium plugins ship with support, regular updates, and production-ready features β€” save days of integration work.

Browse premium plugins β†’

Related tutorials

In-depth guides on the same topic.

All tutorials β†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.