Don't propagate loop to child widgets contexts (#804)
This prevents a loop context from being shared among multiple instances of the same widget. To pass elements of the parent loop context to widgets, use props with an expression when configuring the widget: ``` config: prop1: =loop.i ``` Signed-off-by: Yannick Schaus <github@schaus.net>3.0.x
parent
d05701734c
commit
b196b16656
|
@ -136,7 +136,6 @@ export default {
|
||||||
props: this.config,
|
props: this.config,
|
||||||
vars: this.widgetVars,
|
vars: this.widgetVars,
|
||||||
store: this.context.store,
|
store: this.context.store,
|
||||||
loop: this.context.loop,
|
|
||||||
config: this.context.config,
|
config: this.context.config,
|
||||||
editmode: this.context.editmode,
|
editmode: this.context.editmode,
|
||||||
clipboardtype: this.context.clipboardtype,
|
clipboardtype: this.context.clipboardtype,
|
||||||
|
|
Loading…
Reference in New Issue