Skip to content

Commit

Permalink
fix(ButtonGroup): err when no props on buttons
Browse files Browse the repository at this point in the history
Resolves #360
  • Loading branch information
benjamincanac committed Jun 28, 2023
1 parent 54b6f73 commit 80a9738
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/components/elements/ButtonGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ export default defineComponent({
vProps.size = props.size
}

vProps.class = node.props.class || ''
vProps.class = node.props?.class || ''
vProps.class += ' !shadow-none'
vProps.ui = node.props.ui || {}
vProps.ui = node.props?.ui || {}
vProps.ui.rounded = ''

if (index === 0) {
Expand Down

1 comment on commit 80a9738

@vercel
Copy link

@vercel vercel bot commented on 80a9738 Jun 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./

ui-git-dev-nuxtlabs.vercel.app
ui-nuxtlabs.vercel.app
ui.nuxtlabs.com

Please sign in to comment.