Skip to content

Commit 34af04f

Browse files
author
Alexey Yakimovich
committed
MAGETWO-91784: On Payment screen up and down arrow key allow to add -ve numbers
- Fixed static test.
1 parent 6209f41 commit 34af04f

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Payment/view/base/web/js/model/credit-card-validation

1 file changed

+1
-1
lines changed

app/code/Magento/Payment/view/base/web/js/model/credit-card-validation/validator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
}(function ($, cvvValidator, creditCardNumberValidator, yearValidator, monthValidator, creditCardData) {
2424
'use strict';
2525

26-
$('.payment-method-content input[type="number"]').on('keyup', function() {
26+
$('.payment-method-content input[type="number"]').on('keyup', function () {
2727
if ($(this).val() < 0) {
2828
$(this).val($(this).val().replace(/^-/, ''));
2929
}

0 commit comments

Comments
 (0)