mirror of https://github.com/artf/grapesjs.git
Browse Source
The `prevent` option delegated to `CanvasView.preventDefault`, resolved through `Canvas.getCanvasView()` with optional chaining, so the default browser action was silently kept whenever the canvas view was not available (editor not rendered yet, canvas removed). `Commands`, `Canvas` and the editor instance were also captured when the keymap was added instead of when it runs. Move the prevention to a shared `preventDefault` DOM util, which also handles the original event of the canvas frame (`_parentEvent`), and resolve the modules inside the handler.pull/6815/head
committed by
Nimit Bhagat
4 changed files with 70 additions and 9 deletions
Loading…
Reference in new issue