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

v-bind shorthand doesn't work with v-for #3997

Closed
ferreira-tb opened this issue Mar 5, 2024 · 1 comment · Fixed by #4017
Closed

v-bind shorthand doesn't work with v-for #3997

ferreira-tb opened this issue Mar 5, 2024 · 1 comment · Fixed by #4017
Labels
bug Something isn't working

Comments

@ferreira-tb
Copy link

Reproduction:

<script setup lang="ts">
import { ref } from 'vue';

const values = ref([1, 2, 3]);
const abc = ref('abc');
</script>

<template>
  <div>
    <input v-for="value of values" :key="value" type="number" :value />
    <span :abc></span>
  </div>
</template>

System:
- OS: Windows 10 10.0.19045
- CPU: (16) x64 AMD Ryzen 7 5700G with Radeon Graphics
- Memory: 17.67 GB / 31.37 GB
Binaries:
- Node: 21.6.0 - C:\Program Files\nodejs\node.EXE
- npm: 10.4.0 - C:\ProgramData\npm\npm\npm.CMD
- pnpm: 8.15.4 - C:\ProgramData\npm\npm\pnpm.CMD
Browsers:
- Edge: Chromium (122.0.2365.66)
- Internet Explorer: 11.0.19041.3636
npmPackages:
- typescript: 5.3.3
- vue: 3.4.21
- vue-tsc: 2.0.5
VSCode:
- Version: 1.87.0

@ferreira-tb
Copy link
Author

The same happens when destructuring slot props.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants