[GH-ISSUE #1331] Landing page crashes when large input is entered into input components #371

Closed
opened 2026-02-26 18:46:44 +03:00 by kerem · 1 comment
Owner

Originally created by @apsinghdev on GitHub (Sep 7, 2024).
Original GitHub issue: https://github.com/documenso/documenso/issues/1331

Originally assigned to: @ephraimduncan on GitHub.

Issue Description

Currently, there seems no limit of characters we can enter into the input fields like Title, Subject, and Message fields. So if someone enters large input text, the input components get broken, and the whole page crashes.

Steps to Reproduce

  1. Open Documenso
  2. Upload a document
  3. Put a large text input (I tested with 100k words) in the Title input field of Step 1.
  4. Do the same with the Subject and Message fields of Step 4.
  5. Observe the input component becoming unresponsive and after a few seconds whole page crashes.

Expected Behavior

Ideally, there should be a limit of characters to enter into these input fields so that they won't break.

Current Behavior

Currently, the input fields break when we enter a large input.

Screenshots (optional)

Here is a video showcasing the crash of the page when entering a large input in the Title field

https://github.com/user-attachments/assets/ac4f5693-9066-4855-936a-9b8db1125f21

Here is a video showcasing the crash of the page when entering a large input in the Subject and Message fields

https://github.com/user-attachments/assets/b57c5293-d595-4a0f-8cd3-c24c5eec5db7

Operating System [e.g., Windows 10]

Windows 11

Browser [e.g., Chrome, Firefox]

Brave, Chrome

Version [e.g., 2.0.1]

1.69.160, 128.0.6613.120 (Official Build) (64-bit)

Please check the boxes that apply to this issue report.

  • I have searched the existing issues to make sure this is not a duplicate.
  • I have provided steps to reproduce the issue.
  • I have included relevant environment information.
  • I have included any relevant screenshots.
  • I understand that this is a voluntary contribution and that there is no guarantee of resolution.
  • I want to work on creating a PR for this issue if approved
Originally created by @apsinghdev on GitHub (Sep 7, 2024). Original GitHub issue: https://github.com/documenso/documenso/issues/1331 Originally assigned to: @ephraimduncan on GitHub. ### Issue Description Currently, there seems no limit of characters we can enter into the input fields like `Title`, `Subject`, and `Message` fields. So if someone enters large input text, the input components get broken, and the whole page crashes. ### Steps to Reproduce 1. Open Documenso 2. Upload a document 3. Put a large text input (I tested with 100k words) in the `Title` input field of Step 1. 4. Do the same with the `Subject` and `Message` fields of Step 4. 5. Observe the input component becoming unresponsive and after a few seconds whole page crashes. ### Expected Behavior Ideally, there should be a limit of characters to enter into these input fields so that they won't break. ### Current Behavior Currently, the input fields break when we enter a large input. ### Screenshots (optional) Here is a video showcasing the crash of the page when entering a large input in the `Title` field https://github.com/user-attachments/assets/ac4f5693-9066-4855-936a-9b8db1125f21 Here is a video showcasing the crash of the page when entering a large input in the `Subject` and `Message` fields https://github.com/user-attachments/assets/b57c5293-d595-4a0f-8cd3-c24c5eec5db7 ### Operating System [e.g., Windows 10] Windows 11 ### Browser [e.g., Chrome, Firefox] Brave, Chrome ### Version [e.g., 2.0.1] 1.69.160, 128.0.6613.120 (Official Build) (64-bit) ### Please check the boxes that apply to this issue report. - [X] I have searched the existing issues to make sure this is not a duplicate. - [X] I have provided steps to reproduce the issue. - [X] I have included relevant environment information. - [X] I have included any relevant screenshots. - [X] I understand that this is a voluntary contribution and that there is no guarantee of resolution. - [X] I want to work on creating a PR for this issue if approved
kerem 2026-02-26 18:46:44 +03:00
Author
Owner

@apsinghdev commented on GitHub (Sep 7, 2024):

The solution to this issue can be as follows:

  1. Define and Implement a limit to the number of characters that can be entered into input fields.
  2. Show a small message like this Characters remaining: N [N = number of characters allowed] below the input fields.
  3. N will decrease concerning the increase of the characters in the input fields.
  4. If the user exceeds the limit, we can show a message like XYX field can only have N characters. Update the input to continue.
    @catalinpit Please have a look.
<!-- gh-comment-id:2335121452 --> @apsinghdev commented on GitHub (Sep 7, 2024): The solution to this issue can be as follows: 1. Define and Implement a limit to the number of characters that can be entered into input fields. 2. Show a small message like this `Characters remaining: N [N = number of characters allowed]` below the input fields. 3. N will decrease concerning the increase of the characters in the input fields. 4. If the user exceeds the limit, we can show a message like `XYX field can only have N characters. Update the input to continue.` @catalinpit Please have a look.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#371
No description provided.