Skip to content

Commit

Permalink
Merge pull request #291 from lapras-inc/master
Browse files Browse the repository at this point in the history
Release 0.4.20
  • Loading branch information
Masa-Shin authored Feb 13, 2025
2 parents 461d612 + bd43e91 commit cb13a4a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/ShortModal/ShortModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
background: filterBackground,
zIndex,
}"
@click="$emit('close')"
@click="() => closeOnClickOutside && $emit('close')"
></div>
<div
class="modal-container"
Expand Down Expand Up @@ -72,6 +72,10 @@ export default defineComponent({
type: Boolean,
default: true,
},
closeOnClickOutside: {
type: Boolean,
default: true,
},
},
emits: {
close: null,
Expand Down

0 comments on commit cb13a4a

Please sign in to comment.