Merge pull request 'hotfix: make accountNumber to work on blur' (!1714) from hotfix_vnAccountNumber into master
gitea/salix-front/pipeline/head This commit looks good Details

Reviewed-on: #1714
Reviewed-by: Jorge Penadés <jorgep@verdnatura.es>
This commit is contained in:
Pau Rovira 2025-04-15 12:38:24 +00:00
commit 2eb70aadcb
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>