Closed
Description
Describe the bug
If no id is set for <b-modal>
neither this.$root.$emit("bv::hide::modal", modalId);
nor this.$bvModal.hide(modalId)
hides the modal, when passing the generic id, that was catched with this.$root.$on("bv::modal::show", (ev, modalId) => {})
Steps to reproduce the bug
- Create
<b-modal>
without id - Open modal and listen to the
bv::modal::show
-event to get the modal id - Try to close the modal with one of the methods explained before
Expected behavior
The opened modal should hide, because we have a unique id that refers to the currently opened modal.
Versions
Libraries:
- BootstrapVue: 2.0.0.rc21
- Bootstrap: 4.#.#
- Vue: 2.6.10