From 3788ed615779a1c221355746f1379b5e8823e1dd Mon Sep 17 00:00:00 2001 From: Yannick Schaus Date: Thu, 14 Jan 2021 13:48:38 +0100 Subject: [PATCH] Don't propagate loop to child widgets contexts 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 --- .../org.openhab.ui/web/src/components/widgets/widget-mixin.js | 1 - 1 file changed, 1 deletion(-) diff --git a/bundles/org.openhab.ui/web/src/components/widgets/widget-mixin.js b/bundles/org.openhab.ui/web/src/components/widgets/widget-mixin.js index 971c8b7409..3278cd0b22 100644 --- a/bundles/org.openhab.ui/web/src/components/widgets/widget-mixin.js +++ b/bundles/org.openhab.ui/web/src/components/widgets/widget-mixin.js @@ -136,7 +136,6 @@ export default { props: this.config, vars: this.widgetVars, store: this.context.store, - loop: this.context.loop, config: this.context.config, editmode: this.context.editmode, clipboardtype: this.context.clipboardtype,