WIP: #7354 zone_missing_e2e #1030

Draft
jsegarra wants to merge 191 commits from 7354_zone_missing_e2e into dev
2 changed files with 6 additions and 1 deletions
Showing only changes of commit 86d19218de - Show all commits

View File

@ -34,6 +34,10 @@ const $props = defineProps({
type: Boolean, type: Boolean,
default: true, default: true,
}, },
insertable: {
type: Boolean,
default: false,
},
}); });
const vnInputRef = ref(null); const vnInputRef = ref(null);
@ -82,7 +86,7 @@ const mixinRules = [
const insertMode = ref(false); const insertMode = ref(false);
const handleKeydown = (e) => { const handleKeydown = (e) => {
if (e.key === 'Insert') { if ($props.insertable && e.key === 'Insert') {
insertMode.value = !insertMode.value; insertMode.value = !insertMode.value;
} }
if (insertMode.value && e.key !== 'Insert') { if (insertMode.value && e.key !== 'Insert') {

View File

@ -105,6 +105,7 @@ function handleLocation(data, location) {
:label="t('supplier.fiscalData.account')" :label="t('supplier.fiscalData.account')"
clearable clearable
data-cy="supplierFiscalDataAccount" data-cy="supplierFiscalDataAccount"
insertable
/> />
<VnSelect <VnSelect
:label="t('supplier.fiscalData.sageTaxTypeFk')" :label="t('supplier.fiscalData.sageTaxTypeFk')"