Issue #1830Opened February 25, 2019by skateborden0 reactions

[Bug]: StyleManager properties without "property" defined cause an error on component selection

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, 20190 reactions

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 or id)

lock[bot]March 10, 20200 reactions

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

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.