Skip to content

Commit

Permalink
fix(Card): nullable validator on card roundedClass prop
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Apr 29, 2022
1 parent 8222d05 commit c4a40b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/components/layout/Card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default {
type: String,
default: () => $ui.card.rounded,
validator (value) {
return ['sm', 'md', 'lg', 'xl', '2xl', '3xl'].map(size => `rounded-${size}`).includes(value)
return !value || ['sm', 'md', 'lg', 'xl', '2xl', '3xl'].map(size => `rounded-${size}`).includes(value)
}
},
bodyClass: {
Expand Down

1 comment on commit c4a40b0

@vercel
Copy link

@vercel vercel bot commented on c4a40b0 Apr 29, 2022

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-nuxtlabs.vercel.app
nuxthq-ui.vercel.app
ui-git-dev-nuxtlabs.vercel.app

Please sign in to comment.