Skip to content

Commit

Permalink
always show character counter regardless of validation state
Browse files Browse the repository at this point in the history
  • Loading branch information
Oaphi committed Sep 25, 2023
1 parent 61259c4 commit 47a4d21
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app/assets/javascripts/character_count.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@ $(() => {

const text = `${count} / ${ltnMin ? min : max}`;

if(!ltnMin && !gtnMax && !gteThreshold) {
$counter.addClass('hide');
} else {
$counter.removeClass('hide');
}

if(gtnMax || ltnMin) {
setCounterState($counter, 'error');
setIcon($icon, 'fa-times');
Expand Down

0 comments on commit 47a4d21

Please sign in to comment.