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

WIP: Add input maxlength to prevent typing too much #236

Closed
wants to merge 3 commits into from
Closed

WIP: Add input maxlength to prevent typing too much #236

wants to merge 3 commits into from

Conversation

trwnh
Copy link
Member

@trwnh trwnh commented Jun 7, 2018

If a user types too much and tries to submit, their entire caption will be lost.
This prevents the user from typing too much.
Future PR for JS users should show a live character count.

  • Caption maxlength
  • Comment maxlength

I'm not even sure where comment max is defined, or what it even is...
in my testing, I can only comment up to 255 characters, but
CommentController.php has a line 'comment' => 'required|string|max:500'

If a user types too much and tries to submit, their entire caption will be lost.
This prevents the user from typing too much.
Future PR for JS users should show a live character count.
@dansup dansup self-assigned this Jun 9, 2018
@dansup dansup added ➕Enhancement New feature or request 💼 WIP This is currently being worked on labels Jun 9, 2018
@dansup dansup assigned dansup and trwnh and unassigned dansup Jun 9, 2018
@trwnh
Copy link
Member Author

trwnh commented Aug 11, 2018

PR is now stale after #346

@trwnh trwnh closed this Aug 11, 2018
@trwnh trwnh deleted the patch-1 branch August 11, 2018 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
➕Enhancement New feature or request 💼 WIP This is currently being worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants