From 5746e848b06693a3bcf0d989165f0e385f4556de Mon Sep 17 00:00:00 2001 From: advplyr Date: Sun, 2 Mar 2025 17:13:27 -0600 Subject: [PATCH] Fix:Trim whitespace from custom metadata provider name & url #4069 --- .../modals/AddCustomMetadataProviderModal.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/client/components/modals/AddCustomMetadataProviderModal.vue b/client/components/modals/AddCustomMetadataProviderModal.vue index a68c63cc..da24588b 100644 --- a/client/components/modals/AddCustomMetadataProviderModal.vue +++ b/client/components/modals/AddCustomMetadataProviderModal.vue @@ -10,14 +10,14 @@
- +
- +
@@ -65,7 +65,11 @@ export default { } }, methods: { - submitForm() { + async submitForm() { + // Remove focus from active input + document.activeElement?.blur?.() + await this.$nextTick() + if (!this.newName || !this.newUrl) { this.$toast.error(this.$strings.ToastProviderNameAndUrlRequired) return