Skip to content

SK-2532: fix elements card number cursor resets to the end of the string#664

Open
skyflow-himanshu wants to merge 1 commit intomainfrom
himanshu/SK-2532-tech-spike-investigate-and-fix-elements-card-number-cursor-resets
Open

SK-2532: fix elements card number cursor resets to the end of the string#664
skyflow-himanshu wants to merge 1 commit intomainfrom
himanshu/SK-2532-tech-spike-investigate-and-fix-elements-card-number-cursor-resets

Conversation

@skyflow-himanshu
Copy link
Contributor

Why:
Elements card number cursor resets to the end of the string after deleting two characters.
When a user deletes characters specifically two or more from the middle of a Card Number Element, the cursor unexpectedly jumps to the very end of the input field.

Goal:
The cursor should maintain its position relative to the digits being edited, regardless of formatting changes.
Preserve the cursor position when card numbers are reformatted.

@github-actions
Copy link

github-actions bot commented Feb 5, 2026

Gitleaks Findings: No secrets detected. Safe to proceed!

@github-actions
Copy link

github-actions bot commented Feb 5, 2026

Semgrep Findings: Issues with Error level severity are found (Error is Highest severity in Semgrep), Please resolve the issues before merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant