Issue #1186💬 AnsweredOpened June 8, 2018by Chilli-B0 reactions

Number trait returns 'undefined'

Quick answerby artf

For such an issue I'd require a live demo because you might be using an old version. BTW I wasn't able to reproduce it, so it might also be fixed. In case it's not, please open another issue, with a link to a live demo and exact steps on how to reproduce it

Read full answer below ↓

Question

Hello, it's either a bug or a question, i don't know yet. I defined a new component with - beside others - a number trait, as you can see on the code below. Unfortunately when adjusting the number over the arrows coming along with the trait automatically, it very often switches to 'undefined'. Am I missing something or is this a bug? domComps.addType('socialbar', { model: dModel.extend({ defaults: Object.assign({}, dModel.prototype.defaults, { showShares: 1, size: 32, radius: '4', droppable: !1, traits: [ { label: "Show Shares", type: "checkbox", name: "showShares", changeProp: 1 }, { type: '...

Answers (2)

artfJune 13, 2018

For such an issue I'd require a live demo because you might be using an old version. BTW I wasn't able to reproduce it, so it might also be fixed. In case it's not, please open another issue, with a link to a live demo and exact steps on how to reproduce it

lock[bot]September 17, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

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 →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.