Skip to content

If UProgress max value = 0 -> UProgress max value = 100 #5647

@rodriciru

Description

@rodriciru

Environment

Operating system Windows 10.0.26200
CPU Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz (12 cores)
Node.js version v24.7.0
nuxt/cli version 3.31.2
Package manager [email protected]
Nuxt version 4.2.2
Nitro version 2.12.9
Builder [email protected]
Config compatibilityDate, css, devtools, eslint, experimental, heyApi, modules, nodemailer, routeRules
Modules @nuxt/[email protected], @nuxt/[email protected], @vueuse/[email protected], @hey-api/[email protected], [email protected], @nuxtjs/[email protected], [email protected], [email protected], [email protected]

Is this bug related to Nuxt or Vue?

Nuxt

Package

v4.x

Version

v4.2.1

Reproduction

<script setup lang="ts">
const progress = 0.17
const max = 0
</script>

<template>
<UProgress v-model="progress" :max="max" />
</template>
Image Image

Description

When on UProgress set the max value to an number 0 (not when string is "0") the max value is set to 100.

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageAwaiting initial review and prioritizationv4#4488

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions