Skip to content

Disabled state not passed to variant button #6420

@agatheflorentin

Description

@agatheflorentin

Environment

Property Value
Operating system macOS 25.1.0
CPU Apple M2 (8 cores)
Node.js version v24.10.0
nuxt/cli version 3.35.1
Package manager npm 11.6.2
Nuxt version 4.2.2
Nitro version 2.13.4
Builder vite 7.3.2
Config appConfig, app, colorMode, css, devServer, devtools, modules, router, ssr, typescript, ui, vite
Modules @nuxt/ui 4.6.0, @vueuse/nuxt 14.1.0

Is this bug related to Nuxt or Vue?

Nuxt

Package

v4.x

Version

v4.2.2

Description

When i use variant="button", the <button> element never receives the HTML disabled attribute (it only goes on the hidden <input>)

Reproduction

I'm using :ui so i can force disabled classes

<UFileUpload
          variant="button"
          color="neutral"
          :disabled="disabled"
          :dropzone="false"
          size="xs"
          icon="i-carbon/attachment"
          :ui="{
            base: disabled
              ? '!cursor-not-allowed !text-neutral-500 !opacity-100 !ring-neutral-200 hover:!bg-white'
              : '',
          }"
        />

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