From b458a973e6815e1ca3da42b13038811fbb30a78b Mon Sep 17 00:00:00 2001 From: lubshad Date: Sat, 23 May 2026 21:51:59 +0530 Subject: [PATCH 1/3] Fix POS modal mouse focus --- POS/src/components/ShiftClosingDialog.vue | 3 +- POS/src/components/ShiftOpeningDialog.vue | 3 +- POS/src/components/common/POSDialog.vue | 33 +++++++++++++++++++ .../invoices/InvoiceDetailDialog.vue | 4 +-- POS/src/components/sale/BatchSerialDialog.vue | 3 +- POS/src/components/sale/CouponDialog.vue | 3 +- .../components/sale/CreateCustomerDialog.vue | 3 +- POS/src/components/sale/CustomerDialog.vue | 3 +- .../components/sale/DraftInvoicesDialog.vue | 3 +- .../components/sale/InvoiceHistoryDialog.vue | 3 +- .../components/sale/ItemSelectionDialog.vue | 3 +- POS/src/components/sale/OffersDialog.vue | 3 +- .../components/sale/OfflineInvoicesDialog.vue | 3 +- POS/src/components/sale/PaymentDialog.vue | 3 +- .../components/sale/ReturnInvoiceDialog.vue | 3 +- .../sale/WarehouseAvailabilityDialog.vue | 3 +- POS/src/pages/POSSale.vue | 3 +- 17 files changed, 65 insertions(+), 17 deletions(-) create mode 100644 POS/src/components/common/POSDialog.vue diff --git a/POS/src/components/ShiftClosingDialog.vue b/POS/src/components/ShiftClosingDialog.vue index 8359f063..060f4ea1 100644 --- a/POS/src/components/ShiftClosingDialog.vue +++ b/POS/src/components/ShiftClosingDialog.vue @@ -504,7 +504,8 @@ diff --git a/POS/src/components/invoices/InvoiceDetailDialog.vue b/POS/src/components/invoices/InvoiceDetailDialog.vue index 864cc76c..5bbe965b 100644 --- a/POS/src/components/invoices/InvoiceDetailDialog.vue +++ b/POS/src/components/invoices/InvoiceDetailDialog.vue @@ -281,7 +281,8 @@ import { DEFAULT_CURRENCY, formatCurrency as formatCurrencyUtil } from "@/utils/ import { getInvoiceStatusColor } from "@/utils/invoice" import { logger } from "@/utils/logger" import { hydrateLocalOnlyInvoice, isLocalOnlyInvoiceName } from "@/utils/printInvoice" -import { Button, Dialog, call } from "frappe-ui" +import Dialog from "@/components/common/POSDialog.vue" +import { Button, call } from "frappe-ui" import { ref, watch, nextTick, computed } from "vue" const log = logger.create('InvoiceDetailDialog') @@ -411,4 +412,3 @@ function handlePrint() { emit("print-invoice", invoiceData.value) } - diff --git a/POS/src/components/sale/BatchSerialDialog.vue b/POS/src/components/sale/BatchSerialDialog.vue index f4f09899..29843d72 100644 --- a/POS/src/components/sale/BatchSerialDialog.vue +++ b/POS/src/components/sale/BatchSerialDialog.vue @@ -198,7 +198,8 @@ + +