Reputation: 3580
I'm using React with Bootstrap 4, and have a modal with a form which I would like to dismiss on a successful submit. The documentation suggests there is a "dispose" method. I'm trying to implement it in the form's action, like this:
const plotModal = document.getElementById('plotModal');
plotModal.modal('dispose');
This doesn't seem to work. What am I missing?
Upvotes: 0
Views: 873