I would like to prevent closing Toast when closing Modal in BootstrapVue.
Scenario:
- Open the Modal and Toast on the page
- Close the modal
- then Modal and Toast closed at the same time
Question: how to keep Toast stays
created() {
this.$bvModal.show('modal-form-id')
const errorToaster = {
title: 'Success',
toaster: 'b-toaster-top-center',
variant: 'success'
}
this.$bvToast.toast('Success', errorToaster)
},
methods: {
closeModal() {
this.$bvModal.hide('modal-form-id')
}
}