Environment
|
|
| Operating system |
macOS 25.6.0 |
| CPU |
Apple M4 Pro (14 cores) |
| Node.js version |
v24.11.1 |
| nuxt/cli version |
3.37.0 |
| Package manager |
bun@1.4.0 |
| Nuxt version |
4.5.2 |
| Nitro version |
2.13.4 |
| Builder |
vite@8.2.2 |
| Config |
css, modules |
| Modules |
@nuxt/ui@4.11.0 |
Is this bug related to Nuxt or Vue?
Nuxt
Package
v4.x
Version
v4.11.0
Reproduction
https://github.com/waradu/nuxt-ui-slider-poc (or just look at the description code snippet)
Description
A single-thumb USlider emits a one-element array instead of a number when using plain v-model.
<script setup>
const value = ref(25)
</script>
<template>
<USlider v-model="value" />
<pre>{{ value }} / array: {{ Array.isArray(value) }}</pre>
</template>
After moving the slider:
- Actual:
value becomes [71]
- Expected:
value remains 71
Using v-model.number="value" masks the problem by coercing [71] to 71, but this should not be necessary.
This worked correctly with Nuxt UI 4.10.0.
Additional context
One potentially related change in v4.11.0 is PR #6848 (commit d6c3802), which modified Slider attribute forwarding.
Logs
Environment
macOS 25.6.0Apple M4 Pro (14 cores)v24.11.13.37.0bun@1.4.04.5.22.13.4vite@8.2.2css,modules@nuxt/ui@4.11.0Is this bug related to Nuxt or Vue?
Nuxt
Package
v4.x
Version
v4.11.0
Reproduction
https://github.com/waradu/nuxt-ui-slider-poc (or just look at the description code snippet)
Description
A single-thumb
USlideremits a one-element array instead of a number when using plainv-model.After moving the slider:
valuebecomes[71]valueremains71Using
v-model.number="value"masks the problem by coercing[71]to71, but this should not be necessary.This worked correctly with Nuxt UI 4.10.0.
Additional context
One potentially related change in v4.11.0 is PR #6848 (commit
d6c3802), which modified Slider attribute forwarding.Logs