Skip to content

Commit

Permalink
Fix character-count maxlength attribute not being removed correctly
Browse files Browse the repository at this point in the history
Was being removed from the containing div, but should be
removed from the textarea instead.
  • Loading branch information
andymantell committed Apr 7, 2022
1 parent 14b50af commit 843bfbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/character-count/character-count.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ CharacterCount.prototype.init = function init() {
}

// Remove hard limit if set
$module.removeAttribute('maxlength');
$textarea.removeAttribute('maxlength');

// When the page is restored after navigating 'back' in some browsers the
// state of the character count is not restored until *after* the DOMContentLoaded
Expand Down

0 comments on commit 843bfbe

Please sign in to comment.