Enrich button actions nested inside conditions
This commit is contained in:
parent
d53cc48338
commit
4fd293063e
|
@ -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
|
return enrichedProps
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue