fix: blur and input events for woot input

This commit is contained in:
Shivam Mishra
2024-10-03 20:39:12 +05:30
parent f6353353ae
commit 523b28bccb
9 changed files with 16 additions and 0 deletions
@@ -84,6 +84,7 @@ export default {
:error="attributeNameError"
:label="$t('CUSTOM_ATTRIBUTES.FORM.NAME.LABEL')"
:placeholder="$t('CUSTOM_ATTRIBUTES.FORM.NAME.PLACEHOLDER')"
@blur="v$.attributeName.$touch"
@input="v$.attributeName.$touch"
/>
<woot-input
@@ -160,6 +160,7 @@ export default {
:placeholder="$t('HELP_CENTER.CATEGORY.ADD.SLUG.PLACEHOLDER')"
:help-text="$t('HELP_CENTER.CATEGORY.ADD.SLUG.HELP_TEXT')"
@input="v$.slug.$touch"
@blur="v$.slug.$touch"
/>
<label>
{{ $t('HELP_CENTER.CATEGORY.ADD.DESCRIPTION.LABEL') }}
@@ -171,6 +171,7 @@ export default {
:placeholder="$t('HELP_CENTER.CATEGORY.EDIT.SLUG.PLACEHOLDER')"
:help-text="$t('HELP_CENTER.CATEGORY.EDIT.SLUG.HELP_TEXT')"
@input="v$.slug.$touch"
@blur="v$.slug.$touch"
/>
<label>
{{ $t('HELP_CENTER.CATEGORY.EDIT.DESCRIPTION.LABEL') }}
@@ -125,6 +125,7 @@ export default {
"
data-testid="app-title"
@input="v$.app.title.$touch"
@blur="v$.slug.$touch"
/>
<woot-input
v-model="app.content.url"
@@ -141,6 +142,7 @@ export default {
"
data-testid="app-url"
@input="v$.app.content.url.$touch"
@blur="v$.app.content.url.$touch"
/>
<div class="flex flex-row justify-end w-full gap-2 px-0 py-2">
<woot-button
@@ -78,6 +78,7 @@ export default {
:error="labelTitleErrorMessage"
data-testid="label-title"
@input="v$.title.$touch"
@blur="v$.title.$touch"
/>
<woot-input
@@ -88,6 +89,7 @@ export default {
:placeholder="$t('LABEL_MGMT.FORM.DESCRIPTION.PLACEHOLDER')"
data-testid="label-description"
@input="v$.description.$touch"
@blur="v$.description.$touch"
/>
<div class="w-full">
@@ -84,6 +84,7 @@ export default {
:placeholder="$t('LABEL_MGMT.FORM.NAME.PLACEHOLDER')"
:error="labelTitleErrorMessage"
@input="v$.title.$touch"
@blur="v$.title.$touch"
/>
<woot-input
v-model="description"
@@ -92,6 +93,7 @@ export default {
:label="$t('LABEL_MGMT.FORM.DESCRIPTION.LABEL')"
:placeholder="$t('LABEL_MGMT.FORM.DESCRIPTION.PLACEHOLDER')"
@input="v$.description.$touch"
@blur="v$.description.$touch"
/>
<div class="w-full">
@@ -95,6 +95,7 @@ export default {
: ''
}`"
@input="v$.currentPassword.$touch"
@blur="v$.currentPassword.$touch"
/>
<woot-input
@@ -108,6 +109,7 @@ export default {
v$.password.$error ? $t('PROFILE_SETTINGS.FORM.PASSWORD.ERROR') : ''
}`"
@input="v$.password.$touch"
@blur="v$.password.$touch"
/>
<woot-input
@@ -125,6 +127,7 @@ export default {
: ''
}`"
@input="v$.passwordConfirmation.$touch"
@blur="v$.passwordConfirmation.$touch"
/>
<FormButton
@@ -102,6 +102,7 @@ export default {
v$.userName.$error ? $t('PROFILE_SETTINGS.FORM.NAME.ERROR') : ''
}`"
@input="v$.userName.$touch"
@blur="v$.userName.$touch"
/>
<woot-input
v-model="userDisplayName"
@@ -115,6 +116,7 @@ export default {
: ''
}`"
@input="v$.userDisplayName.$touch"
@blur="v$.userDisplayName.$touch"
/>
<woot-input
v-if="emailEnabled"
@@ -127,6 +129,7 @@ export default {
v$.userEmail.$error ? $t('PROFILE_SETTINGS.FORM.EMAIL.ERROR') : ''
}`"
@input="v$.userEmail.$touch"
@blur="v$.userEmail.$touch"
/>
<FormButton
type="submit"
@@ -169,6 +169,7 @@ export default {
:placeholder="$t('SLA.FORM.NAME.PLACEHOLDER')"
:error="slaNameErrorMessage"
@input="v$.name.$touch"
@blur="v$.name.$touch"
/>
<woot-input
v-model="description"