Episodes
itsterry PRO said about 1 month ago on Limiting Text Input :
Great tutorial, Dave: thank you

nelsonchavespro PRO said 17 days ago on Limiting Text Input :
I love this but not working for me. I tried putting on my text_area and it works but only at 160. I changed the data-text-limiter-limit-value="1000", and it only displays 160. What am I doing wrong?

.form-outline.mb-4{"data-controller" => "text-limiter", "data-text-limiter-limit-value" => "1000"}
  = f.text_area :body, placeholder: "Add your comment", class: "form-control"


David Kimura PRO said 17 days ago on Limiting Text Input :
  nelsonchavespro  it looks like you're passing in the limit value as a string. What happens if you use an integer instead?

nelsonchavespro PRO said 17 days ago on Limiting Text Input :
  David Kimura I tried both ways integer or string. I noticed that too when i translated erb to haml. still doesn't work


nelsonchavespro PRO said 14 days ago on Limiting Text Input :
  David Kimura so I started testing this out again. I tried putting 150 characters on the value. It works. it won't let me type past 150 characters. but the label display still says "10 characters remaining" in red. then i tried 170 characters on the value. and it works again I cant type more than 170 characters but the label displaying now says "-10 characters remaining" in red. for some reason the label display is stuck on 160.

Login to Comment