elementary / elementary/appcenter

Sometimes, when entering the long card number for payment, the cursor is placed in the incorrect position

Open
#1,398 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vala
Stars
554
Forks
104
Avg merge
15h 57m
Merged PRs (30d)
2

Description

- [x] I have searched open and closed issues for duplicates.

### Description
When paying for an application and entering the long card number, sometimes the cursor is in the wrong position within the textbox. When getting to the point where an automatic space is placed (every four digits), the cursor is placed before the previous character. results in the incorrect number being input if the user is not watching carefully.

### Steps to reproduce the behavior:
1. Open AppCenter.
2. Open the listing for a curated application with a price greater than zero.
3. Select the suggested price or choose another from the drop-down list.
4. Input the long card number and observe for the error.

### Expected behavior
Spaces are taken in the textbox automatically every time for new digits are entered and the cursor remains in front of the last digit.

![Screenshot from 2020-08-29 22-38-35](https://user-images.githubusercontent.com/15250241/91646571-674f0c00-ea48-11ea-8aa0-2d6f3b990e6f.png)

Please check what applies:
-->
- [ ] I'm using the latest version from git that I've manually compiled
- [x] I'm using the latest released stable version

_Unfortunately, I am currently unable to reproduce it at the moment, so I can't record it. I was able to reproduce many times in succession, though._

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.