Skip to content

[BUG] TemplateLiteral expression cannot be used with event when use optimize mode. #728

Open
@zhiyuanzmj

Description

🐛 Bug description

📝 Steps to reproduce

Reproduction Link (required):

https://github.com/zhiyuanzmj/vue-jsx-issue-728

The value prop does not respond correctly.

import { defineComponent, ref } from "vue";

const Comp = ({ value }) => <div>{value}</div>;

export default defineComponent(() => {
  const foo = ref(0);
  return () => <Comp onClick={() => foo.value++} value={`${foo.value}`} />;
});

🏞 Desired result

🚑 Other information

Need NODE_ENV=production environment variable.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions