cubbles / cubx.core.rte

Contains the artifacts for the in-browser runtime-environment.
https://cubbles.atlassian.net/wiki/display/RTE
1 stars 1 forks source link

Elementary init values set in manifest.file do not execute modelSlotNameChanged method #29

Closed edwingamboa closed 6 years ago

edwingamboa commented 6 years ago

When defining init values in the manifest.webpackage' file for an elementary component, the methodmodelSlotNameChanged` in the javascript file of the component is no executed

jtrs commented 6 years ago

@edwingamboa : RTE Version?

pwrinc commented 6 years ago

@edwingamboa: Is there an issue with setting an input slot of a compound member (which is an elementary component) using the inits array. Or is the issue with defining a default value for an input slot definition in an elemtary`s definition.

edwingamboa commented 6 years ago

Hi, @jtrs @pwrinc. The issue is related to the default value of elementary slots in the manifest definition. Using modelVersion 10.0.0 and RTE@3.0.0-SNAPSHOT.

pwrinc commented 6 years ago

In former discussion when implementing RTE 3.0.0 we decided to not trigger modelChange event when setting slot values using the value property in manifest for the following reason: To avoid unexepcted behaviour inside the component when model[slot]Change method is triggered during initalisation of the components initial slot values.