diff --git a/compiler/generate/index.js b/compiler/generate/index.js index df742d162e..5e8e23bde3 100644 --- a/compiler/generate/index.js +++ b/compiler/generate/index.js @@ -174,7 +174,7 @@ export default function generate ( parsed, template ) { return JSON.stringify( chunk.data ); } else { contextualise( code, chunk.expression, current.contexts, helpers ); - return `[✂${chunk.expression.start}-${chunk.expression.end}✂]`; + return `( [✂${chunk.expression.start}-${chunk.expression.end}✂] )`; } }).join( ' + ' ) ); diff --git a/test/compiler/attribute-dynamic-multiple/_config.js b/test/compiler/attribute-dynamic-multiple/_config.js new file mode 100644 index 0000000000..0cb7c908dd --- /dev/null +++ b/test/compiler/attribute-dynamic-multiple/_config.js @@ -0,0 +1,10 @@ +export default { + data: { + items: [ + { foo: true, bar: false }, + { foo: false, bar: true }, + { foo: true, bar: true } + ] + }, + html: `