Skip to content

Commit

Permalink
Merge pull request #436 from skyflowapi/SK-1120-remove-format-from-co…
Browse files Browse the repository at this point in the history
…py-text-in-card-number

SK-1120: copy unformatted card number
  • Loading branch information
skyflow-shravan authored Jul 29, 2024
2 parents 0ea5900 + 013964a commit 638bc92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/internal/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ export class FrameElement {
(<HTMLInputElement> 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);
Expand Down

0 comments on commit 638bc92

Please sign in to comment.