Skip to content

u-button-group throws an error "Cannot read properties of null (reading 'class')" #360

@acidjazz

Description

@acidjazz

Version

@nuxthq/ui: latest
nuxt: latest

Reproduction Link

https://stackblitz.com/edit/nuxtlabs-ui-xsfja8?file=app.vue

Steps to reproduce

      <u-button-group>
        <u-button>CVE</u-button>
        <u-button>CPE</u-button>
        <u-button>PURL</u-button>
      </u-button-group>

What is Expected?

A normal button group

What is actually happening?

JS error

BTW this doesnt happen if I use Label:

          <u-button-group>
            <u-button label="CVE" />
            <u-button label="CPE" />
            <u-button label="PURL" />
          </u-button-group>

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