We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6fb3c6 commit a4d0137Copy full SHA for a4d0137
packages/babel-plugin-jsx/test/index.test.tsx
@@ -364,6 +364,20 @@ describe('PatchFlags', () => {
364
expect(wrapper.html()).toBe('<div style="display: none;">NEED_PATCH</div>');
365
});
366
367
+ test('#728: template literals with expressions should be treated as dynamic', async () => {
368
+ const wrapper = mount({
369
+ setup() {
370
+ const foo = ref(0);
371
+ return () => (
372
+ <button value={`${foo.value}`} onClick={() => foo.value++}></button>
373
+ );
374
+ }
375
+ });
376
+ patchFlagExpect(wrapper, 8, ['value', 'onClick']);
377
+ await wrapper.trigger('click');
378
+ expect(wrapper.html()).toBe('<button value="1"></button>');
379
+ })
380
+
381
test('full props', async () => {
382
const wrapper = mount({
383
setup() {
0 commit comments