Skip to content

Commit

Permalink
fix(Notification): remove required title to prevent warning when us…
Browse files Browse the repository at this point in the history
…ing slot
  • Loading branch information
benjamincanac committed Feb 15, 2024
1 parent e545b6f commit aa2b1ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/components/overlays/Notification.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<UAvatar v-if="avatar" v-bind="{ size: ui.avatar.size, ...avatar }" :class="ui.avatar.base" />

<div :class="ui.inner">
<p :class="ui.title">
<p v-if="(title || $slots.title)" :class="ui.title">
<slot name="title" :title="title">
{{ title }}
</slot>
Expand Down Expand Up @@ -73,7 +73,7 @@ export default defineComponent({
},
title: {
type: String,
required: true
default: null
},
description: {
type: String,
Expand Down

0 comments on commit aa2b1ca

Please sign in to comment.