Skip to content

Commit

Permalink
fix(props): fix warning Invalid default value for prop "cardProps"
Browse files Browse the repository at this point in the history
Props with type Object/Array must use a factory function

re #89
  • Loading branch information
iliyaZelenko committed Nov 3, 2019
1 parent 08cd339 commit f15d554
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/TiptapVuetify.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ export default class TiptapVuetify extends Vue {
@Prop({ type: String })
readonly [PROPS.PLACEHOLDER]: string
@Prop({ type: Object, default: {} })
@Prop({
type: Object,
default: () => ({})
})
readonly [PROPS.CARD_PROPS]: Record<string, any>
@Prop({ type: String, default: 'html' })
Expand Down

0 comments on commit f15d554

Please sign in to comment.