Skip to content

Modals created with useModal not showing title defined in component #2877

@hackel

Description

@hackel

Describe the bug

If I create a modal with useModal where the title is defined in an external component, it does not display. This began with the v0.40.0 release. e.g.
MyModal.vue:

<template>
  <BModal title="My title">This is a modal.</BModal>
</template>

Calling component:

<script setup>
import { useModal } from 'bootstrap-vue-next';
const { create } = useModal();
const showModal = () => create({ component: MyModal }).show();
</script>

If I add the title prop directly to the create() call, then it displays fine.

Reproduction

https://stackblitz.com/edit/github-tlr4gwj5?file=src%2Fcomponents%2FComp.vue

Used Package Manager

pnpm

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions