We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5210b8f commit 541694eCopy full SHA for 541694e
src/components/badge/CBadge.ts
@@ -68,10 +68,10 @@ const CBadge = defineComponent({
68
{
69
[`bg-${props.color}`]: props.color,
70
'position-absolute translate-middle': props.position,
71
- 'top-0': props.position?.includes('top'),
72
- 'top-100': props.position?.includes('bottom'),
73
- 'start-100': props.position?.includes('end'),
74
- 'start-0': props.position?.includes('start'),
+ 'top-0': props.position && props.position.includes('top'),
+ 'top-100': props.position && props.position.includes('bottom'),
+ 'start-100': props.position && props.position.includes('end'),
+ 'start-0': props.position && props.position.includes('start'),
75
[`badge-${props.size}`]: props.size,
76
[`text-${props.textColor}`]: props.textColor,
77
},
0 commit comments