BUG: v0.17.25 . Trait button in the custom component defining.
Question
GrapesJS version
- I confirm to use the latest version of GrapesJS
What browser are you using?
Firefox
Reproducible demo link
https://jsfiddle.net/abolabo/3g7j519h/19/
Describe the bug
Code works incorrect: traits: [ { type: "button", text: "click me", full: true, command: (editor) => console.log("trait command"), }, ],
I expecting <button> tag but input type=button shows instead. No text inside button. No command run.
Code of Conduct
- I agree to follow this project's Code of Conduct
Answers (1)
Thanks @abolabo for the report, this issue was actually already fixed here #3735
Related Questions and Answers
Continue research with similar issue discussions.
Issue #4861
BUG: <br/> is adding to single line text, after entering space for the first time in firefox
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Firefox Reproducible demo link https://jsf...
Issue #4466
BUG: Change in traits does not update html
GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Reproducible demo link https://jsfi...
Issue #5888
BUG: Cannot edit component content even with editable property set to true
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome V124 Reproducible demo link https:/...
Issue #5334
BUG: Selection of custom component type not working in the canvas
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome, Opera, Edge, etc Reproducible demo...
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.