hotfix: make accountNumber to work on blur
gitea/salix-front/pipeline/pr-master This commit looks good Details

This commit is contained in:
Pau Rovira 2025-04-15 11:54:26 +00:00
parent a66849f361
commit d122752672
1 changed files with 2 additions and 1 deletions

View File

@ -8,7 +8,8 @@ const model = defineModel({ prop: 'modelValue' });
<VnInput <VnInput
v-model="model" v-model="model"
ref="inputRef" ref="inputRef"
@keydown.tab="model = useAccountShortToStandard($event.target.value) ?? model" @keydown.tab="$refs.inputRef.vnInputRef.blur()"
@blur="model = useAccountShortToStandard(model) ?? model"
@input="model = $event.target.value.replace(/[^\d.]/g, '')" @input="model = $event.target.value.replace(/[^\d.]/g, '')"
/> />
</template> </template>