Thanks, I’ve reproduced this. The stored text respects the limit, but the display can show an extra character or password bullet. It affects normal text fields too.
I’ve logged the bug. The fix will include regression tests for both normal and password fields, checking that the displayed text, caret and stored value stay consistent.