Issue #3763Opened September 10, 2021by abolabo0 reactions

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)

artfSeptember 11, 20210 reactions

Thanks @abolabo for the report, this issue was actually already fixed here #3735

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

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.