From 013964a8f4b39e791695fa21fcd477cfa7e45bda Mon Sep 17 00:00:00 2001 From: skyflow-shravan Date: Tue, 9 Jul 2024 14:02:15 +0530 Subject: [PATCH] SK-1120: copy unformatted card number --- src/core/internal/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/internal/index.ts b/src/core/internal/index.ts index d15dce84..2007e865 100644 --- a/src/core/internal/index.ts +++ b/src/core/internal/index.ts @@ -300,7 +300,7 @@ export class FrameElement { ( this.domInput).checked = this.options.value === state.value; } if (this.options.enableCopy) { - this.copyText = state.value; + this.copyText = this.iFrameFormElement.getUnformattedValue(); } if (this.iFrameFormElement.fieldType === ELEMENTS.CARD_NUMBER.name) { const cardType = detectCardType(state.value);