Browse Source

fix: interpolation on property binding

pull/4023/head
Michael Shanks 6 years ago
parent
commit
69f57a211c
  1. 2
      packages/client/src/state/stateManager.js

2
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, {

Loading…
Cancel
Save