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 }">
<VnRow>
<VnInput
:label="t('Names')"
:label="t('Name')"
v-model="data.name"
:rules="validate('city.name')"
/>

View File

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

View File

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