Comment text box characters remaining can go over 1000
- Dominant language
- Python
- Stars
- 8
- Forks
- 2
- Avg merge
- 14h 34m
- Merged PRs (30d)
- 46
Description
**Describe the bug in current situation**
Comment text box characters remaining counter can go over 1000. If user uses backspace, counter works properly, however if user selects all the entered text then deletes or backspace, deleted characters will be counted double (i.e. if user typed 4 letters, then deleted, then the new counter will display 1004 characters remaining). If user types again, the counter will work properly again
**Link bug to the User Story**
**Impact of this bug**
low, only ui is affected
**Chance of Occurring (high/medium/low/very low)**
medium
**Pre Conditions: which Env, any pre-requesites or assumptions to execute steps?**
**Steps to Reproduce**
Steps to reproduce the behavior:
- submit a request
- login as user, open review request view
- go to comment tab
- click add comment, type some letters
- use ctrl + a, or use mouse to select all text typed
- press delete or backspace
**Actual/ observed behaviour/ results**
counter goes over 1000
**Expected behaviour**
counter should say 1000
**Screenshots/ Visual Reference/ Source**
If applicable, add screenshots to help explain your problem. You an use screengrab.


Contributor guide
Research direction
Start by reproducing the steps in the review request's comment tab: add a comment, type text, select it all, and delete it. Locate the comment text box and its character counter, then verify that deleting selected text leaves the counter at 1000 and that subsequent typing remains accurate.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100