Skip to content

Commit

Permalink
fix(v-modal): disable click outside when loading
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitano committed Jul 5, 2022
1 parent 61c2b26 commit b187fd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/modal/src/VModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ watch(isOpen, (val) => emit('update:modelValue', val));
watch(isLoading, (val) => (isLoading.value = val));
function onModalClose() {
if (props.persistent) {
if (props.persistent || isLoading.value) {
return null;
} else {
closeModal();
Expand Down

0 comments on commit b187fd9

Please sign in to comment.