BUG: Button trait command doesn't work
Question
Version: Latest
Describe the bug detailed
https://jsfiddle.net/cleaver/wgz2jsvq/2/ Nothing happens on:
traits: [
{
text: 'Simple button',
type: 'button',
full: true,
command: () => {
console.log('Broken button');
alert('Broken button');
},
},
]
On version 0.16.45 the same code worked fine: https://jsfiddle.net/cleaver/kenvpt50/1/
Answers (1)
Thanks for the report @tudor-ooo will be fixed in the next release
Related Questions and Answers
Continue research with similar issue discussions.
Issue #4388
BUG: button traits command not working
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? any browser Reproducible demo link https:/...
Issue #3763
BUG: v0.17.25 . Trait button in the custom component defining.
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? FirefoxReproducible demo link https://jsfidd...
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 #5319
BUG: Undo doesn't refresh class on component
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome V116.0.5845.96 Reproducible demo li...
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.