0
0
Fork 0

fix: refs #8163 minor problem when keypress

This commit is contained in:
Javier Segarra 2024-11-25 22:34:56 +01:00
parent 7650997c24
commit a45c40f796
3 changed files with 4 additions and 6 deletions

View File

@ -44,7 +44,7 @@ const onDataSaved = (...args) => {
<template #form-inputs="{ data, validate }"> <template #form-inputs="{ data, validate }">
<VnRow> <VnRow>
<VnInput <VnInput
:label="t('Names')" :label="t('Name')"
v-model="data.name" v-model="data.name"
:rules="validate('city.name')" :rules="validate('city.name')"
/> />

View File

@ -135,14 +135,14 @@ async function onProvinceCreated(data) {
ref="provincesFetchDataRef" ref="provincesFetchDataRef"
@on-fetch="handleProvinces" @on-fetch="handleProvinces"
:sort-by="['name ASC']" :sort-by="['name ASC']"
:limit="3" :limit="30"
auto-load auto-load
url="Provinces/location" url="Provinces/location"
/> />
<FetchData <FetchData
ref="townsFetchDataRef" ref="townsFetchDataRef"
:sort-by="['name ASC']" :sort-by="['name ASC']"
:limit="3" :limit="30"
:filter="townFilter" :filter="townFilter"
@on-fetch="handleTowns" @on-fetch="handleTowns"
auto-load auto-load
@ -150,7 +150,7 @@ async function onProvinceCreated(data) {
/> />
<FetchData <FetchData
ref="countriesFetchDataRef" ref="countriesFetchDataRef"
:limit="3" :limit="30"
:filter="countryFilter" :filter="countryFilter"
:sort-by="['name ASC']" :sort-by="['name ASC']"
@on-fetch="handleCountries" @on-fetch="handleCountries"

View File

@ -95,8 +95,6 @@ const handleKeydown = (e) => {
if ($props.insertable && e.key.match(/[0-9]/)) { if ($props.insertable && e.key.match(/[0-9]/)) {
handleInsertMode(e); handleInsertMode(e);
} else {
e.preventDefault();
} }
}; };