Fix record modal closing by itself if quickly closing and opening a new modal in under 300ms
This commit is contained in:
@@ -166,14 +166,16 @@ export default {
|
||||
this.setDefaultValues()
|
||||
|
||||
setTimeout(() => {
|
||||
this.$router.replace({
|
||||
query: {
|
||||
...this.$route.query,
|
||||
recordID: undefined,
|
||||
moduleID: undefined,
|
||||
recordPageID: undefined,
|
||||
},
|
||||
})
|
||||
if (this.recordID === undefined && this.page === undefined) {
|
||||
this.$router.replace({
|
||||
query: {
|
||||
...this.$route.query,
|
||||
recordID: undefined,
|
||||
moduleID: undefined,
|
||||
recordPageID: undefined,
|
||||
},
|
||||
})
|
||||
}
|
||||
}, 300)
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user