scratchfoundation / scratchfoundation/scratch-blocks
In RTL, while editing a number field, the negative sign is on the incorrect side
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 2.8k
- Forks
- 1.6k
- Avg merge
- 4h 51m
- Merged PRs (30d)
- 12
Description
Expected Behavior
The negative sign should always appear on the correct side while typing in a number.
Actual Behavior
In RTL, while editing a number, the negative sign incorrectly appears on the right side. Once the edit is accepted, the negative sign moves to the correct side (after https://github.com/LLK/scratch-blocks/pull/1702):

In a report from an educator for the Perisian language, this bug results in young people thinking they need to type 10- in order for it to display correctly. Then the value is wrong and doesn't do what they expect.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the RTL number-editing behavior and the changes in pull request #1702. Reproduce typing a negative number in an RTL locale, then verify that the sign appears on the correct side while editing and remains correct after acceptance.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, internationalization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100