From e4469fbef7b657e1ac408030b368e119f7427cc2 Mon Sep 17 00:00:00 2001 From: Jack Sleight Date: Tue, 1 Oct 2024 11:43:39 +0100 Subject: [PATCH] Increase trackDirtyStateTimeout --- resources/js/components/entries/PublishForm.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/js/components/entries/PublishForm.vue b/resources/js/components/entries/PublishForm.vue index 931641d671..31fdd45b37 100644 --- a/resources/js/components/entries/PublishForm.vue +++ b/resources/js/components/entries/PublishForm.vue @@ -606,7 +606,7 @@ export default { clearTimeout(this.trackDirtyStateTimeout) this.trackDirtyState = false this.values = this.resetValuesFromResponse(response.data.data.values); - this.trackDirtyStateTimeout = setTimeout(() => (this.trackDirtyState = true), 350) + this.trackDirtyStateTimeout = setTimeout(() => (this.trackDirtyState = true), 500) this.$nextTick(() => this.$emit('saved', response)); return; } @@ -630,7 +630,7 @@ export default { clearTimeout(this.trackDirtyStateTimeout); this.trackDirtyState = false; this.values = this.resetValuesFromResponse(response.data.data.values); - this.trackDirtyStateTimeout = setTimeout(() => (this.trackDirtyState = true), 350); + this.trackDirtyStateTimeout = setTimeout(() => (this.trackDirtyState = true), 500); this.initialPublished = response.data.data.published; this.activeLocalization.published = response.data.data.published; this.activeLocalization.status = response.data.data.status; @@ -719,7 +719,7 @@ export default { this.initialPublished = data.values.published; this.readOnly = data.readOnly; - this.trackDirtyStateTimeout = setTimeout(() => this.trackDirtyState = true, 300); // after any fieldtypes do a debounced update + this.trackDirtyStateTimeout = setTimeout(() => this.trackDirtyState = true, 500); // after any fieldtypes do a debounced update }) }, @@ -802,7 +802,7 @@ export default { clearTimeout(this.trackDirtyStateTimeout); this.trackDirtyState = false; this.values = this.resetValuesFromResponse(response.data.data.values); - this.trackDirtyStateTimeout = setTimeout(() => (this.trackDirtyState = true), 350); + this.trackDirtyStateTimeout = setTimeout(() => (this.trackDirtyState = true), 500); this.activeLocalization.title = response.data.data.title; this.activeLocalization.published = response.data.data.published; this.activeLocalization.status = response.data.data.status; @@ -859,7 +859,7 @@ export default { clearTimeout(this.trackDirtyStateTimeout); this.trackDirtyState = false; this.values = this.resetValuesFromResponse(response.data.values); - this.trackDirtyStateTimeout = setTimeout(() => (this.trackDirtyState = true), 350); + this.trackDirtyStateTimeout = setTimeout(() => (this.trackDirtyState = true), 500); this.initialPublished = response.data.published; this.activeLocalization.published = response.data.published; this.activeLocalization.status = response.data.status;