Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

Automatically normalize fields to maxlength #1

Closed
zachleat opened this issue Apr 21, 2014 · 1 comment
Closed

Automatically normalize fields to maxlength #1

zachleat opened this issue Apr 21, 2014 · 1 comment

Comments

@zachleat
Copy link
Member

Right now politespace truncates the value to the maxlength. This might be unintuitive.

It may be more intuitive if the maxlength value represents the total length without whitespace. Then the maxlength would be the same as the total length the user would be allowed to type into the field.

grouplength = 2
maxlength = 5

Right now the user would be able to type in 5 characters, but the value would be truncated to 4 with one space on blur.

It might be more intuitive if the user could type in 4 characters, and the script dynamically changes the maxlength while the user is focused.

@zachleat
Copy link
Member Author

zachleat commented Jun 5, 2015

Fixed by 0f2850a

@zachleat zachleat closed this as completed Jun 5, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant