Don't trim typed input so that user's typing is not disrupted #35

Merged
merged 1 commit into from Sep 15, 2012

Conversation

Projects
None yet
2 participants
@skwp

skwp commented Jul 12, 2012

If the user types 'foo ' with a space, and the ajax call comes back
successfully, it replaces the 'foo ' with 'foo' (trimmed).

This causes inconsistent user experience as the user may have simply
paused while typing a space, and the space is then removed, mangling
his input. Note that this fix simply avoids trimming the user's visual
input, while still sending a trimmed value to the server.

Danny Olson & Yan Pritzker
Don't trim typed input so that user's typing is not disrupted
If the user types 'foo ' with a space, and the ajax call comes back
successfully, it replaces the 'foo ' with 'foo' (trimmed).

This causes inconsistent user experience as the user may have simply
paused while typing a space, and the space is then removed, mangling
his input. Note that this fix simply avoids trimming the user's visual
input, while still sending a trimmed value to the server.

@meltingice meltingice merged commit ee277c7 into meltingice:master Sep 15, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment