diff --git a/frontend/src/pages/people.vue b/frontend/src/pages/people.vue index 17e3da108..6757651b5 100644 --- a/frontend/src/pages/people.vue +++ b/frontend/src/pages/people.vue @@ -18,7 +18,7 @@ - + diff --git a/frontend/src/pages/people/faces.vue b/frontend/src/pages/people/faces.vue index 98f33b1c0..2d1c13e6f 100644 --- a/frontend/src/pages/people/faces.vue +++ b/frontend/src/pages/people/faces.vue @@ -142,7 +142,8 @@ import {ClickLong, ClickShort, Input, InputInvalid} from "common/input"; export default { name: 'PPageFaces', props: { - staticFilter: Object + staticFilter: Object, + active: Boolean, }, data() { const query = this.$route.query; @@ -186,6 +187,12 @@ export default { }, watch: { '$route'() { + // Tab inactive? + if (!this.active) { + // Ignore event. + return; + } + const query = this.$route.query; this.filter.q = query["q"] ? query["q"] : ""; diff --git a/frontend/src/pages/people/subjects.vue b/frontend/src/pages/people/subjects.vue index 65c08ccbc..19341f144 100644 --- a/frontend/src/pages/people/subjects.vue +++ b/frontend/src/pages/people/subjects.vue @@ -159,7 +159,8 @@ import {ClickLong, ClickShort, Input, InputInvalid} from "common/input"; export default { name: 'PPageSubjects', props: { - staticFilter: Object + staticFilter: Object, + active: Boolean, }, data() { const query = this.$route.query; @@ -194,6 +195,12 @@ export default { }, watch: { '$route'() { + // Tab inactive? + if (!this.active) { + // Ignore event. + return; + } + const query = this.$route.query; this.filter.q = query["q"] ? query["q"] : "";