[Bug] backspace key trigger navigating back
Question
Hi,
in grapesjs in Firefox 75.0 when "backspace key" (event.which === 8) is pressed the navigator is going back and grapesjs is lost.
To reproduce it: Open Firefox browser
Open URL: https://grapesjs.com/
Click on: "Newsletter Demo" buttom
Delete a element from editor usign "backspace key" (NOT using supr key)
The behavior is: the navagator is going back and the editor is lost.
I am trying this but it doesn't work:
**$document.on('keydown', function(e){
if(e.which === 8){ // you can add others here inside brackets.
e.preventDefault();
e.stopPropagation();
}
});**
i can do something over/inside editor instance to disable "firefox behavior" and prevent go back in history in browser?
thanks.Answers (3)
Should be fixed in the next release
@juice77 the issue was fixed in the latest release https://github.com/artf/grapesjs/compare/v0.16.17...v0.16.18
Yes this is very annoying
Related Questions and Answers
Continue research with similar issue discussions.
Issue #4208
BUG: Style click state bug in every element
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Brave Last, tested on chrome last and Safa...
Issue #4310
BUG: Style Manager is inaccurate when using combined CSS selectors which contains "bout" and componentFirst = true
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome 100 Reproducible demo link https://...
Issue #3866
BUG: SVG Not rendering when inside any HTML Element
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Version 94.0.4606.81 (Official Build) (64-bi...
Issue #2876
[Bug] Resizing frame may be positioned around invalid element
Steps to reproduce:open newsletter demo at https://grapesjs.com/demo-newsletter-editor.htmlclean canvasplace "1/3 section"place "Image" in...
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.