Listen for changes in the show property so we can reset the content data value.
This commit is contained in:
parent
6b6af7b50b
commit
6671b873b4
1 changed files with 12 additions and 0 deletions
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue