From c4a40b065c021e3af706ea65a02fdce591f5acb4 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Fri, 29 Apr 2022 15:21:26 +0200 Subject: [PATCH] fix(Card): nullable validator on card roundedClass prop --- src/runtime/components/layout/Card.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/components/layout/Card.vue b/src/runtime/components/layout/Card.vue index b5f7a1c6..b767d25c 100644 --- a/src/runtime/components/layout/Card.vue +++ b/src/runtime/components/layout/Card.vue @@ -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: {