Enrich button actions nested inside conditions
This commit is contained in:
parent
a00473fa61
commit
b02f631888
|
@ -43,5 +43,17 @@ export const enrichProps = (props, context) => {
|
|||
)
|
||||
}
|
||||
|
||||
// Enrich any click actions in conditions
|
||||
if (enrichedProps._conditions) {
|
||||
enrichedProps._conditions.forEach(condition => {
|
||||
if (condition.setting === "onClick") {
|
||||
condition.settingValue = enrichButtonActions(
|
||||
condition.settingValue,
|
||||
totalContext
|
||||
)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
return enrichedProps
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue