1
0
Fork 0
mirror of synced 2024-07-06 23:10:57 +12:00

fix: interpolation on property binding

This commit is contained in:
Michael Shanks 2020-06-30 09:48:48 +01:00
parent bd1f281908
commit 69f57a211c

View file

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