From c3e599b3e4e3e9d70b749af0aa32f75d889f53da Mon Sep 17 00:00:00 2001 From: padreug Date: Mon, 8 Sep 2025 18:44:36 +0200 Subject: [PATCH] Enhance MerchantStore component with improved form handling and dialog management - Introduce keys for reactivity in the stall creation dialog and form elements to ensure proper rendering and state management. - Implement autocomplete and spellcheck attributes for input fields to enhance user experience during store creation. - Refactor form initialization and reset logic to ensure a clean state upon dialog opening and closing, improving usability. - Add validation triggers after loading data to ensure form integrity and user feedback during the stall creation process. These changes streamline the store creation experience, providing a more responsive and user-friendly interface for merchants. --- .../market/components/MerchantStore.vue | 127 +++++++++++++----- 1 file changed, 97 insertions(+), 30 deletions(-) diff --git a/src/modules/market/components/MerchantStore.vue b/src/modules/market/components/MerchantStore.vue index 2f9ec12..2666af1 100644 --- a/src/modules/market/components/MerchantStore.vue +++ b/src/modules/market/components/MerchantStore.vue @@ -449,13 +449,13 @@ - + Create New Store -
+
@@ -466,6 +466,9 @@ placeholder="Enter your store name" :disabled="isCreatingStall" v-bind="componentField" + :key="`store-name-${formKey}`" + autocomplete="off" + spellcheck="false" /> @@ -483,6 +486,9 @@ placeholder="Describe your store and products" :disabled="isCreatingStall" v-bind="componentField" + :key="`store-description-${formKey}`" + autocomplete="off" + spellcheck="false" /> @@ -564,6 +570,9 @@ placeholder="e.g., Europe, Worldwide" :disabled="isCreatingStall" v-bind="componentField" + :key="`zone-name-${formKey}`" + autocomplete="off" + spellcheck="false" /> @@ -578,6 +587,7 @@ min="0" :placeholder="`Cost in ${getFieldValue('currency') || 'sat'}`" :disabled="isCreatingStall" + :key="`zone-cost-${formKey}`" v-bind="componentField" /> @@ -634,7 +644,7 @@