Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 GovTool PDF Comment Box: Cursor Jumps to End & No Soft Line Breaks #3019

Open
bosko-m opened this issue Feb 18, 2025 · 0 comments
Open
Assignees
Labels
🐛 Bug Something isn't working 📜 Proposal Pillar

Comments

@bosko-m
Copy link
Contributor

bosko-m commented Feb 18, 2025

Area

Proposal Pillar

Domain

gov.tools

Which wallet were you using?

No response

Context

Community members have reported usability issues with the GovTool PDF comment box. Specifically:

  • The cursor automatically jumps to the end of the text when typing and switching focus quickly.
  • The comment box does not support soft line breaks, unlike the reply field.
  • Users find it difficult to insert text in the middle of an existing comment without cutting and pasting manually.
  • The behavior differs from standard HTML text areas, making it harder to compose structured, longer texts.

Steps to reproduce

  1. Open GovTool PDF, go to a specific proposal and navigate to a comment box.
  2. Attempt to insert text in the middle of an already written comment and make sure you type space twice consecutively
  3. Try pressing Shift + Enter to create a soft line break.

Actual behavior

  • The cursor jumps to the end of the text when typing space twice consecutively.
  • The comment box does not support soft line breaks (Shift + Enter does nothing).
  • Users are forced to cut and paste text manually to insert content in the middle of their comment.

Expected behavior

  • The cursor should be positioned in a place where clicked when typing space twice consecutively.
  • The comment box should allow soft line breaks (Shift + Enter should work as expected).
  • Users should be able to insert text in the middle of their comment without extra steps.

Reference of a problem and potential solution to this React behavior: https://medium.com/@spenceraford/cursed-cursor-fixing-cursor-jump-in-react-inputs-262906d389aa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working 📜 Proposal Pillar
Projects
Status: No status
Status: In QA
Development

No branches or pull requests

2 participants