https://bugzilla.wikimedia.org/show_bug.cgi?id=61450

--- Comment #1 from Brion Vibber <br...@wikimedia.org> ---
I took a quick look at jquery.byteLimit.js which implements the byte-length
input limiting... it seems the cursor being moved is a side effect of modifying
the contents of the input field (the trimming).

Note the same thing happens if you *type* past the limit too and aren't at the
end already -- by default if you happen to be typing all-ASCII-able text you
may not notice because you're hitting the browser's character limit.


One could possibly jump through some hoops to get the cursor position and reset
it, but I wonder if the whole thing's worth it...

It might be better to give a warning that you're out of characters and just
show a red border or a warning text, and let it just crop on the backend.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to