From c5f4e8decd2d4008df70f4ffa118db0b3deb3a1f Mon Sep 17 00:00:00 2001 From: jorgep Date: Thu, 12 Dec 2024 10:56:42 +0100 Subject: [PATCH] fix: refs #7936 exclude disabled els on tab --- src/components/common/VnSelect.vue | 2 +- src/pages/InvoiceIn/Card/InvoiceInDueDay.vue | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/common/VnSelect.vue b/src/components/common/VnSelect.vue index 5b905efc7..dc8fd582e 100644 --- a/src/components/common/VnSelect.vue +++ b/src/components/common/VnSelect.vue @@ -301,7 +301,7 @@ function handleKeyDown(event) { } const focusableElements = document.querySelectorAll( - 'a, button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])' + 'a:not([disabled]), button:not([disabled]), input:not([disabled]), textarea:not([disabled]), select:not([disabled]), details:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled])' ); const currentIndex = Array.prototype.indexOf.call( focusableElements, diff --git a/src/pages/InvoiceIn/Card/InvoiceInDueDay.vue b/src/pages/InvoiceIn/Card/InvoiceInDueDay.vue index 75f9a67a4..d2c6d0a2d 100644 --- a/src/pages/InvoiceIn/Card/InvoiceInDueDay.vue +++ b/src/pages/InvoiceIn/Card/InvoiceInDueDay.vue @@ -144,8 +144,6 @@ async function insert() { }" :disable="!isNotEuro(currency)" v-model="row.foreignValue" - clearable - clear-icon="close" />