How to catch a click outside a Modal which closes it?
I want to know how can I catch that Click outside the modal, so I can say my Modal Component to change its property to false?
and where should I put that code?
inside the
Hello! @bobbybouwmann , Currently Im using vuestrap because it is the easiest solution for not typing more than I should ,
But I have a problem. sometimes I click outside the modal which is showing in the screen so It closes, but the
modalName.showMod remains in its True value, so If I click again lets say on the Create Button, it doesnt display the modal.
So I need to catch that click outside the modal to change its state to false.
But I dont know how, neither where should I enter the code.
Im also using .vue So I have a <template> tag because that modal is a component of another file.