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
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:
commit
2eb70aadcb
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue