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

USelect converts integer value to string #2886

Closed
projct1 opened this issue Dec 12, 2024 · 1 comment
Closed

USelect converts integer value to string #2886

projct1 opened this issue Dec 12, 2024 · 1 comment
Labels
bug Something isn't working duplicate This issue or pull request already exists v3 #1289

Comments

@projct1
Copy link

projct1 commented Dec 12, 2024

Environment

Is this bug related to Nuxt or Vue?

Nuxt

Version

3.0.0-alpha.10

Reproduction

<script setup lang="ts">
  const place = ref({
    day: 1
  })

  const days = ref([
    {
      value: 1,
      label: 'Day 1'
    },
    {
      value: 2,
      label: 'Day 2'
    }
  ])
</script>

<template>
  Place:
  <pre>{{ place }}</pre>
  <USelect v-model="place.day" :items="days" class="w-32" />
</template>

Description

https://skr.sh/vT9fUh9cK0d

After change 1 transforms to "1" and got error in console.

@projct1 projct1 added bug Something isn't working triage v3 #1289 labels Dec 12, 2024
@clopezpro
Copy link
Contributor

Duplicate #2903.

@romhml romhml closed this as completed Jan 6, 2025
@romhml romhml closed this as completed Jan 6, 2025
@benjamincanac benjamincanac added duplicate This issue or pull request already exists and removed triage labels Jan 9, 2025 — with Volta.net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists v3 #1289
Projects
None yet
Development

No branches or pull requests

4 participants