BUG: createCustomEvent Doesn't Handle Mouse Events Correctly
Question
Version: 0.17.4 / git master
Describe the bug detailed
FrameView repackages keyboard and mouse events here:
I think the reason is related to redirecting iframe events to parent frame events. This would be fine, however, the createCustomEvent function looks like this:
As you can see, the which property is defined to return the value of keyCode. This works for keyboard events, but on mouse events, it should return the value of which from the wrapped event.
This causes which to be undefined in the event, breaking an external package I use that relies on event.which for mouse events.
Answers (0)
No answers yet.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3515
BUG: gjs-selected Style is Hardcoded
This definition: https://github.com/artf/grapesjs/blob/88249c38577852dc3c42047356a70a12066ee6ca/src/canvas/view/FrameView.js#L303-L306 is a...
Issue #3130
[Question] Standard approach in slight restructuring the HTML toolbar & badge
Version: 0.15.10 This question is intended to validate if there is a proper way to extend the current https://github.com/artf/grapesjs/blob...
Issue #5373
BUG: `getDirtyCount()` returns `1` after loading
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome latest Reproducible demo link https...
Issue #4434
BUG: CSS Parser's shape doesn't allow the CSS property to be defined more than once.
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? AnyReproducible demo link https://grapesjs.c...
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.