forked from verdnatura/salix-front
fix: refs #8163 minor problem when keypress
This commit is contained in:
parent
7650997c24
commit
a45c40f796
|
@ -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')"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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();
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue