From 9e1ae5d9a41b059509c913c5e7706673c2fba69a Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Tue, 30 Jun 2020 09:48:48 +0100 Subject: [PATCH] fix: interpolation on property binding --- packages/client/src/state/stateManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/state/stateManager.js b/packages/client/src/state/stateManager.js index 5c5f198956..ac417f32fa 100644 --- a/packages/client/src/state/stateManager.js +++ b/packages/client/src/state/stateManager.js @@ -59,7 +59,7 @@ const _setup = ({ handlerTypes, getCurrentState, bb, store }) => node => { const propValue = props[propName] // A little bit of a hack - won't bind if the string doesn't start with {{ - const isBound = typeof propValue === "string" && propValue.startsWith("{{") + const isBound = typeof propValue === "string" && propValue.includes("{{") if (isBound) { initialProps[propName] = mustache.render(propValue, {