PropertyStack #6536
-
Hi @artf, I've been working on creating a custom UI for a box-shadow component. I'm using grapesjs/react. Here's how I initialize the data:
StackField.tsx
I've been playing around on how the upValues work and was able to implement the PropertyComposite. I tried debugging the values inside the layers, and they are updating normally. The issue is, when I try to check the values inside the layer, it's stale. I'm not sure how does grapesjs handle it internally but I'm a bit lost on how it's working. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You need to select the layer first, that you'd update the properties in the same way you update the PropertyComposite (eg. |
Beta Was this translation helpful? Give feedback.
You need to select the layer first, that you'd update the properties in the same way you update the PropertyComposite (eg.
stackProperty.getProperty('property-name').upValue(...)
)