Issue #6695Opened February 2, 2026by Axel3030 reactions

BUG: Prevent default not working for edge

Question

GrapesJS version

  • I confirm to use the latest version of GrapesJS

What browser are you using?

Edge 144.0.3719.92

Reproducible demo link

https://jsfiddle.net/L61f0qtz/

Describe the bug

How to reproduce the bug?

  1. Open GrapesJS editor in Microsoft Edge.
  2. Add a keymap for saving using either Ctrl+S or Ctrl+Shift+S with { prevent: true }.
  3. Focus on the editor canvas (or anywhere in the editor).
  4. Press the shortcut (Ctrl+S or Ctrl+Shift+S).

What is the expected behavior?

The GrapesJS command console.log("save") should execute. The browser should not open the “Save” or “Save As…” dialog

What is the current behavior?

The "console.log("save") not happen. The browser triggers its default “Save” or “Save As…” dialog. preventDefault() does not stop the browser shortcut in Edge.

Code of Conduct

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

Answers (0)

No answers yet.

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...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.