Issue #2225πŸ’¬ AnsweredOpened Aug 28, 2019by mogolola0 reactions

Events are not working properly on the release 0.15.3

Quick answerby mogolola

Also, events like "blur", "focus", (bascially everything except "click") don't work in backbone events configuration (by that I mean view events in backbone: https://backbonejs.org/#View-events ). for example: if I attach a callback to a "focus" event , the callback is never called. But callbacks to the "click" events...

Read full answer below ↓

Question

Hi, The events mechanism seems have changed a lot since release 0.15x. For example, normally when we want to prevent the default button behavior, we will use "return false" at the end of the callback function, but this doesn't work anymore in this release (no matter what you return), I have to call "event.preventDefault()" manully. Another issue is that I can't use $.on to attach event listener. But using the pure JS method "addEventListener" is fine. I can't understand why but I believe this has something to do with the file "extender.js". It seems that you add something to deal with all eve...

Answers (3)

mogololaβ€’ Aug 29, 2019

Also, events like "blur", "focus", (bascially everything except "click") don't work in backbone events configuration (by that I mean view events in backbone: https://backbonejs.org/#View-events ). for example: if I attach a callback to a "focus" event , the callback is never called. But callbacks t...

artfβ€’ Sep 4, 2019

Can you please provide live examples of what was working in previous versions and what it doesn't now?

mogololaβ€’ Sep 5, 2019

Example 1: Example 2: When I try to attach event listeners, only callback to the click events can be called

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

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins β†’
Premium option

Premium plugins ship with support, regular updates, and production-ready features β€” save days of integration work.

Browse premium plugins β†’

Related tutorials

In-depth guides on the same topic.

All tutorials β†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.