This may be related to #2819031.

Maxlength seems to count a string of many initial spaces as one character, but after a non-space character it counts a string of spaces as multiple characters. Is this the expected behaviour?

Additionally, the count indicator does not update when the key press is for a space character. It only updates when a non-space character is typed.

It is perhaps best explained with a video/gif: https://gfycat.com/ElatedDecentGalapagossealion

Gif of the character count not updating with every key press, just on a non-space character keypress

CommentFileSizeAuthor
ElatedDecentGalapagossealion.gif1015.94 KBPhil Wolstenholme
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Phil Wolstenholme created an issue. See original summary.

cedewey’s picture

Status: Needs work » Closed (duplicate)
cedewey’s picture

Title: Issues around the counting of characters/character count not updating » Spaces not counted correctly
Related issues: +#2825511: New lines and spaces are miscounted