mirror of
https://github.com/directus/directus.git
synced 2026-01-31 16:48:08 -05:00
Don't fire navguard on subroute
This commit is contained in:
@@ -255,7 +255,7 @@ export default defineComponent({
|
||||
const leaveTo = ref<string | null>(null);
|
||||
|
||||
const editsGuard: NavigationGuard = (to) => {
|
||||
if (editMode.value) {
|
||||
if (editMode.value && to.params.primaryKey !== props.primaryKey) {
|
||||
confirmLeave.value = true;
|
||||
leaveTo.value = to.fullPath;
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user