0
0
Fork 0

Listen for changes in the show property so we can reset the content data value.

This commit is contained in:
Oliver-Akins 2020-12-20 17:33:22 -07:00
parent 6b6af7b50b
commit 6671b873b4

View file

@ -39,6 +39,18 @@ export default {
}; };
}, },
}, },
watch: {
show(newVal) {
/**
* This method is used to re-set the animation for the modal when
* the modal is closed through changing the `show` property rather
* than having a `closed` event emitted.
*/
if (!newVal) {
this.content = false;
}
},
},
} }
</script> </script>