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?
- Open GrapesJS editor in Microsoft Edge.
- Add a keymap for saving using either Ctrl+S or Ctrl+Shift+S with { prevent: true }.
- Focus on the editor canvas (or anywhere in the editor).
- 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.
Issue #5173
BUG: editor.Css.setRule API not working as expected, it is not updating the rule existing rule.
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Version 112.0.5615.137 (Official Build) (a...
Issue #5743
BUG: XSS vulnerability in iframe attribute src
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Edge v122 Reproducible demo link https://j...
Issue #4449
BUG: Lists not working with default RTE
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Version 102.0.5005.115 (Official Bu...
Issue #4015
BUG: Drag and drop not working well in case of RTL
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v96 Reproducible demo link https://...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.