bcgov / bcgov/foi-flow

Comment text box characters remaining can go over 1000

Open
#1,383 0 comments 0 reactions 0 assignees View on GitHub
bug low priority
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.

![image.png](https://images.zenhubusercontent.com/61b8d66efdea7284030f762c/7f8facfc-4796-4f9a-91a9-05ded3809f80)

![image.png](https://images.zenhubusercontent.com/61b8d66efdea7284030f762c/5a10879d-7594-4214-86b5-9fa39d7f1002)

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.