Skip to content

Button with props to and disabled #2083

@kicaj

Description

@kicaj

Environment

  • Node: 18.20.4
  • Vue: 3.4.34
  • Nuxt: 3.12.4
  • Nuxt UI: 2.18.2

Version

2.18.2

Reproduction

Description

  1. <UButton>Text</UButton> returns:
    <button type="button" class="...">Test</button>

  2. <UButton to="#">Text</UButton> returns:
    <a href="#" class="...">Test</button>

  3. <UButton :disabled="true">Text</UButton> returns:
    <button type="button" class="..." disabled>Test</button> and disabled classes

but:

  1. <UButton to="#" :disabled="true">Text</UButton> returns:
    <a class="..." aria-disabled="true" role="link">Test</button> without attributes href and disabled and also without disabled classes but with attributes aria-disabled and role.

It's 4th example not should return href and disabled attributes and also disabled classes?

Additional context

No response

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions