Skip to content

Commit f287c60

Browse files
author
hwyu@adobe.com
committed
MC-38985: Disable clipboard for cc inputs
- Resolved BiC change
1 parent 7c07c55 commit f287c60

File tree

1 file changed

+9
-1
lines changed
  • app/code/Magento/Payment/view/frontend/web/js/view/payment

1 file changed

+9
-1
lines changed

app/code/Magento/Payment/view/frontend/web/js/view/payment/cc-form.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,21 @@ define([
185185
* Get image for CVV
186186
* @returns {String}
187187
*/
188-
getCvvImageUnsanitizedHtml: function () {
188+
getCvvImageHtml: function () {
189189
return '<img src="' + this.getCvvImageUrl() +
190190
'" alt="' + $t('Card Verification Number Visual Reference') +
191191
'" title="' + $t('Card Verification Number Visual Reference') +
192192
'" />';
193193
},
194194

195+
/**
196+
* Get unsanitized html for image for CVV
197+
* @returns {String}
198+
*/
199+
getCvvImageUnsanitizedHtml: function () {
200+
return this.getCvvImageHtml();
201+
},
202+
195203
/**
196204
* @deprecated
197205
* @returns {Object}

0 commit comments

Comments
 (0)