From b196b16656283e1853452c68d97ecbca2e5abbfd Mon Sep 17 00:00:00 2001 From: Yannick Schaus Date: Thu, 14 Jan 2021 15:08:12 +0100 Subject: [PATCH] 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 --- .../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 971c8b740..3278cd0b2 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,