close modal when clicking on it's outside

This commit is contained in:
busti 2019-12-29 18:10:55 +01:00
parent 8c759c4f23
commit df5a5f4729

View file

@ -1,5 +1,5 @@
<template> <template>
<div class="modal" tabindex="-1" @keyup.esc="$emit('close')"> <div class="modal" tabindex="-1" @keyup.esc="$emit('close')" @click.self="$emit('close')">
<div class="modal-dialog modal-xl"> <div class="modal-dialog modal-xl">
<div class="modal-content bg-dark text-light border-secondary"> <div class="modal-content bg-dark text-light border-secondary">
<div class="modal-header"> <div class="modal-header">