This commit is contained in:
parent
ec40ef9351
commit
86d19218de
|
@ -34,6 +34,10 @@ const $props = defineProps({
|
|||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
insertable: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
});
|
||||
|
||||
const vnInputRef = ref(null);
|
||||
|
@ -82,7 +86,7 @@ const mixinRules = [
|
|||
const insertMode = ref(false);
|
||||
|
||||
const handleKeydown = (e) => {
|
||||
if (e.key === 'Insert') {
|
||||
if ($props.insertable && e.key === 'Insert') {
|
||||
insertMode.value = !insertMode.value;
|
||||
}
|
||||
if (insertMode.value && e.key !== 'Insert') {
|
||||
|
|
|
@ -105,6 +105,7 @@ function handleLocation(data, location) {
|
|||
:label="t('supplier.fiscalData.account')"
|
||||
clearable
|
||||
data-cy="supplierFiscalDataAccount"
|
||||
insertable
|
||||
/>
|
||||
<VnSelect
|
||||
:label="t('supplier.fiscalData.sageTaxTypeFk')"
|
||||
|
|
Loading…
Reference in New Issue