fix: Update input event bindings to use blur events (#10216)
This commit is contained in:
@@ -84,6 +84,7 @@ export default {
|
|||||||
:error="attributeNameError"
|
:error="attributeNameError"
|
||||||
:label="$t('CUSTOM_ATTRIBUTES.FORM.NAME.LABEL')"
|
:label="$t('CUSTOM_ATTRIBUTES.FORM.NAME.LABEL')"
|
||||||
:placeholder="$t('CUSTOM_ATTRIBUTES.FORM.NAME.PLACEHOLDER')"
|
:placeholder="$t('CUSTOM_ATTRIBUTES.FORM.NAME.PLACEHOLDER')"
|
||||||
|
@blur="v$.attributeName.$touch"
|
||||||
@input="v$.attributeName.$touch"
|
@input="v$.attributeName.$touch"
|
||||||
/>
|
/>
|
||||||
<woot-input
|
<woot-input
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ function onFileChange({ file }) {
|
|||||||
:placeholder="$t('HELP_CENTER.PORTAL.ADD.NAME.PLACEHOLDER')"
|
:placeholder="$t('HELP_CENTER.PORTAL.ADD.NAME.PLACEHOLDER')"
|
||||||
:help-text="$t('HELP_CENTER.PORTAL.ADD.NAME.HELP_TEXT')"
|
:help-text="$t('HELP_CENTER.PORTAL.ADD.NAME.HELP_TEXT')"
|
||||||
@blur="v$.name.$touch"
|
@blur="v$.name.$touch"
|
||||||
@input="onNameChange"
|
@update:model-value="onNameChange"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-4">
|
<div class="mb-4">
|
||||||
|
|||||||
@@ -160,6 +160,7 @@ export default {
|
|||||||
:placeholder="$t('HELP_CENTER.CATEGORY.ADD.SLUG.PLACEHOLDER')"
|
:placeholder="$t('HELP_CENTER.CATEGORY.ADD.SLUG.PLACEHOLDER')"
|
||||||
:help-text="$t('HELP_CENTER.CATEGORY.ADD.SLUG.HELP_TEXT')"
|
:help-text="$t('HELP_CENTER.CATEGORY.ADD.SLUG.HELP_TEXT')"
|
||||||
@input="v$.slug.$touch"
|
@input="v$.slug.$touch"
|
||||||
|
@blur="v$.slug.$touch"
|
||||||
/>
|
/>
|
||||||
<label>
|
<label>
|
||||||
{{ $t('HELP_CENTER.CATEGORY.ADD.DESCRIPTION.LABEL') }}
|
{{ $t('HELP_CENTER.CATEGORY.ADD.DESCRIPTION.LABEL') }}
|
||||||
|
|||||||
@@ -171,6 +171,7 @@ export default {
|
|||||||
:placeholder="$t('HELP_CENTER.CATEGORY.EDIT.SLUG.PLACEHOLDER')"
|
:placeholder="$t('HELP_CENTER.CATEGORY.EDIT.SLUG.PLACEHOLDER')"
|
||||||
:help-text="$t('HELP_CENTER.CATEGORY.EDIT.SLUG.HELP_TEXT')"
|
:help-text="$t('HELP_CENTER.CATEGORY.EDIT.SLUG.HELP_TEXT')"
|
||||||
@input="v$.slug.$touch"
|
@input="v$.slug.$touch"
|
||||||
|
@blur="v$.slug.$touch"
|
||||||
/>
|
/>
|
||||||
<label>
|
<label>
|
||||||
{{ $t('HELP_CENTER.CATEGORY.EDIT.DESCRIPTION.LABEL') }}
|
{{ $t('HELP_CENTER.CATEGORY.EDIT.DESCRIPTION.LABEL') }}
|
||||||
|
|||||||
@@ -186,7 +186,7 @@ export default {
|
|||||||
: ''
|
: ''
|
||||||
"
|
"
|
||||||
:placeholder="$t('ATTRIBUTES_MGMT.ADD.FORM.NAME.PLACEHOLDER')"
|
:placeholder="$t('ATTRIBUTES_MGMT.ADD.FORM.NAME.PLACEHOLDER')"
|
||||||
@input="onDisplayNameChange"
|
@update:model-value="onDisplayNameChange"
|
||||||
@blur="v$.displayName.$touch"
|
@blur="v$.displayName.$touch"
|
||||||
/>
|
/>
|
||||||
<woot-input
|
<woot-input
|
||||||
|
|||||||
@@ -125,6 +125,7 @@ export default {
|
|||||||
"
|
"
|
||||||
data-testid="app-title"
|
data-testid="app-title"
|
||||||
@input="v$.app.title.$touch"
|
@input="v$.app.title.$touch"
|
||||||
|
@blur="v$.slug.$touch"
|
||||||
/>
|
/>
|
||||||
<woot-input
|
<woot-input
|
||||||
v-model="app.content.url"
|
v-model="app.content.url"
|
||||||
@@ -141,6 +142,7 @@ export default {
|
|||||||
"
|
"
|
||||||
data-testid="app-url"
|
data-testid="app-url"
|
||||||
@input="v$.app.content.url.$touch"
|
@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">
|
<div class="flex flex-row justify-end w-full gap-2 px-0 py-2">
|
||||||
<woot-button
|
<woot-button
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ export default {
|
|||||||
:error="labelTitleErrorMessage"
|
:error="labelTitleErrorMessage"
|
||||||
data-testid="label-title"
|
data-testid="label-title"
|
||||||
@input="v$.title.$touch"
|
@input="v$.title.$touch"
|
||||||
|
@blur="v$.title.$touch"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<woot-input
|
<woot-input
|
||||||
@@ -88,6 +89,7 @@ export default {
|
|||||||
:placeholder="$t('LABEL_MGMT.FORM.DESCRIPTION.PLACEHOLDER')"
|
:placeholder="$t('LABEL_MGMT.FORM.DESCRIPTION.PLACEHOLDER')"
|
||||||
data-testid="label-description"
|
data-testid="label-description"
|
||||||
@input="v$.description.$touch"
|
@input="v$.description.$touch"
|
||||||
|
@blur="v$.description.$touch"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div class="w-full">
|
<div class="w-full">
|
||||||
|
|||||||
@@ -84,6 +84,7 @@ export default {
|
|||||||
:placeholder="$t('LABEL_MGMT.FORM.NAME.PLACEHOLDER')"
|
:placeholder="$t('LABEL_MGMT.FORM.NAME.PLACEHOLDER')"
|
||||||
:error="labelTitleErrorMessage"
|
:error="labelTitleErrorMessage"
|
||||||
@input="v$.title.$touch"
|
@input="v$.title.$touch"
|
||||||
|
@blur="v$.title.$touch"
|
||||||
/>
|
/>
|
||||||
<woot-input
|
<woot-input
|
||||||
v-model="description"
|
v-model="description"
|
||||||
@@ -92,6 +93,7 @@ export default {
|
|||||||
:label="$t('LABEL_MGMT.FORM.DESCRIPTION.LABEL')"
|
:label="$t('LABEL_MGMT.FORM.DESCRIPTION.LABEL')"
|
||||||
:placeholder="$t('LABEL_MGMT.FORM.DESCRIPTION.PLACEHOLDER')"
|
:placeholder="$t('LABEL_MGMT.FORM.DESCRIPTION.PLACEHOLDER')"
|
||||||
@input="v$.description.$touch"
|
@input="v$.description.$touch"
|
||||||
|
@blur="v$.description.$touch"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div class="w-full">
|
<div class="w-full">
|
||||||
|
|||||||
@@ -95,6 +95,7 @@ export default {
|
|||||||
: ''
|
: ''
|
||||||
}`"
|
}`"
|
||||||
@input="v$.currentPassword.$touch"
|
@input="v$.currentPassword.$touch"
|
||||||
|
@blur="v$.currentPassword.$touch"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<woot-input
|
<woot-input
|
||||||
@@ -108,6 +109,7 @@ export default {
|
|||||||
v$.password.$error ? $t('PROFILE_SETTINGS.FORM.PASSWORD.ERROR') : ''
|
v$.password.$error ? $t('PROFILE_SETTINGS.FORM.PASSWORD.ERROR') : ''
|
||||||
}`"
|
}`"
|
||||||
@input="v$.password.$touch"
|
@input="v$.password.$touch"
|
||||||
|
@blur="v$.password.$touch"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<woot-input
|
<woot-input
|
||||||
@@ -125,6 +127,7 @@ export default {
|
|||||||
: ''
|
: ''
|
||||||
}`"
|
}`"
|
||||||
@input="v$.passwordConfirmation.$touch"
|
@input="v$.passwordConfirmation.$touch"
|
||||||
|
@blur="v$.passwordConfirmation.$touch"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<FormButton
|
<FormButton
|
||||||
|
|||||||
@@ -102,6 +102,7 @@ export default {
|
|||||||
v$.userName.$error ? $t('PROFILE_SETTINGS.FORM.NAME.ERROR') : ''
|
v$.userName.$error ? $t('PROFILE_SETTINGS.FORM.NAME.ERROR') : ''
|
||||||
}`"
|
}`"
|
||||||
@input="v$.userName.$touch"
|
@input="v$.userName.$touch"
|
||||||
|
@blur="v$.userName.$touch"
|
||||||
/>
|
/>
|
||||||
<woot-input
|
<woot-input
|
||||||
v-model="userDisplayName"
|
v-model="userDisplayName"
|
||||||
@@ -115,6 +116,7 @@ export default {
|
|||||||
: ''
|
: ''
|
||||||
}`"
|
}`"
|
||||||
@input="v$.userDisplayName.$touch"
|
@input="v$.userDisplayName.$touch"
|
||||||
|
@blur="v$.userDisplayName.$touch"
|
||||||
/>
|
/>
|
||||||
<woot-input
|
<woot-input
|
||||||
v-if="emailEnabled"
|
v-if="emailEnabled"
|
||||||
@@ -127,6 +129,7 @@ export default {
|
|||||||
v$.userEmail.$error ? $t('PROFILE_SETTINGS.FORM.EMAIL.ERROR') : ''
|
v$.userEmail.$error ? $t('PROFILE_SETTINGS.FORM.EMAIL.ERROR') : ''
|
||||||
}`"
|
}`"
|
||||||
@input="v$.userEmail.$touch"
|
@input="v$.userEmail.$touch"
|
||||||
|
@blur="v$.userEmail.$touch"
|
||||||
/>
|
/>
|
||||||
<FormButton
|
<FormButton
|
||||||
type="submit"
|
type="submit"
|
||||||
|
|||||||
@@ -169,6 +169,7 @@ export default {
|
|||||||
:placeholder="$t('SLA.FORM.NAME.PLACEHOLDER')"
|
:placeholder="$t('SLA.FORM.NAME.PLACEHOLDER')"
|
||||||
:error="slaNameErrorMessage"
|
:error="slaNameErrorMessage"
|
||||||
@input="v$.name.$touch"
|
@input="v$.name.$touch"
|
||||||
|
@blur="v$.name.$touch"
|
||||||
/>
|
/>
|
||||||
<woot-input
|
<woot-input
|
||||||
v-model="description"
|
v-model="description"
|
||||||
|
|||||||
Reference in New Issue
Block a user