diff --git a/myproject/orders/static/orders/js/payment_widget.js b/myproject/orders/static/orders/js/payment_widget.js index fb0af07..5d51845 100644 --- a/myproject/orders/static/orders/js/payment_widget.js +++ b/myproject/orders/static/orders/js/payment_widget.js @@ -233,7 +233,10 @@ export class PaymentWidget { // Автофокус на поле суммы const amountInput = document.querySelector(`.payment-amount-input[data-index="${index}"]`); - if (amountInput) amountInput.focus(); + if (amountInput) { + amountInput.focus(); + amountInput.select(); // Выделяем всю сумму для быстрой замены + } // Если кошелек - ограничить сумму if (option.dataset.code === 'account_balance' && this.customer) {