Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
zhiyuanzmj opened this issue Dec 7, 2024 · 0 comments · Fixed by #729
Closed

Comments

@zhiyuanzmj
Copy link
Member

zhiyuanzmj commented Dec 7, 2024

🐛 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.

@zhiyuanzmj zhiyuanzmj changed the title [BUG] TemplateLittle expression can't co-usage with event when use optimize mode. [BUG] TemplateLittle expression cannot be used with event when use optimize mode. Dec 7, 2024
@zhiyuanzmj zhiyuanzmj changed the title [BUG] TemplateLittle expression cannot be used with event when use optimize mode. [BUG] TemplateLiteral expression cannot be used with event when use optimize mode. Dec 7, 2024
haoqunjiang added a commit that referenced this issue Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant