Issue #1830💬 AnsweredOpened February 25, 2019by skateborden0 reactions

StyleManager properties without "property" defined cause an error on component selection

Quick answerby artf

In my case this is a sub-property of a stack, where it wouldn't make sense for a property to be defined. Yeah, it makes sense, but unfortunately, the property is kind of mandatory for the Style Manager, probably for now I'll just check the model on init and update property in the case is empty (eg. by taking the name...

Read full answer below ↓

Question

When using a StyleManager property where "property" is not defined, and defaults to '', I'm seeing an error on component selection: "TypeError: values[0] is undefined" at PropertyView.js targetUpdated -> getComputedValue-> camelCase. I'm seeing this in my local project with v0.14.52.

jsfiddle: https://jsfiddle.net/okc9abez/7/

In my case this is a sub-property of a stack, where it wouldn't make sense for a property to be defined.

Answers (2)

artfMarch 3, 2019

In my case this is a sub-property of a stack, where it wouldn't make sense for a property to be defined. Yeah, it makes sense, but unfortunately, the property is kind of mandatory for the Style Manager, probably for now I'll just check the model on init and update property in the case is empty (eg....

lock[bot]March 10, 2020

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 →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.