Issue #3544💬 AnsweredOpened June 15, 2021by maekawataiki0 reactions

Trait Button Command not working on 0.17.4

Quick answerby mosh-tudor

@maekawataiki This is fixed, but not yet released - https://github.com/artf/grapesjs/issues/3497

Read full answer below ↓

Question

Version:0.17.4

The trait with type button does not call command on 0.17.4 which is used to work before 0.17.3.

Expected Behaviour

Clicking button invoke command defined in trait.

What is happening

Clicking button does nothing

jsfiddle example

Command working on 0.17.3 -> https://jsfiddle.net/7pmz4u1v/3/ Command not working on 0.17.4 -> https://jsfiddle.net/7pmz4u1v/4/

Answers (2)

GJSBlockMay 17, 2026

Thanks for reporting this, @maekawataiki. Great question about Trait Button Command not working on 0.17.4. The recommended approach with GrapesJS is to use the event-driven API. Start here: Check the GrapesJS documentation for your specific module Look for the on() event listener method Most operat...

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.