From 773f9daf05cf12b174b0f1c6192500679b26515c Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Wed, 14 Jan 2026 11:43:58 +0000 Subject: [PATCH] Avoid generating slug for localization when field isn't localizable --- resources/js/components/fieldtypes/SlugFieldtype.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/components/fieldtypes/SlugFieldtype.vue b/resources/js/components/fieldtypes/SlugFieldtype.vue index 51a70b09cc1..01f73e15e96 100644 --- a/resources/js/components/fieldtypes/SlugFieldtype.vue +++ b/resources/js/components/fieldtypes/SlugFieldtype.vue @@ -110,7 +110,7 @@ export default { handleLocalizationCreated({ container }) { // Only reset for the "slug" field in the matching container. // Other slug fields that aren't named "slug" should be left alone. - if (this.handle === 'slug' && container.name === this.publishContainer.name) { + if (this.handle === 'slug' && container.name === this.publishContainer.name && this.config.localizable) { this.$refs.slugify.reset(); } },