sindresorhus/refined-github

Comment fields stay tall after the comment is submitted #1977

fregante posted onGitHub

  1. Write a long comment on this issue
  2. See the textarea expand
  3. Submit the content
  4. The textarea height should reset but it doesn't

This is probably because GitHub resets the content via .value = '' and that doesn't trigger the input event that fit-textarea waits for.

However, GitHub's own textarea resizer works correctly so they must have some other way to trigger this reset, like a custom event.


Ah that’s great!

I’m using Firefox so perhaps chrome fires an input event and it works for you.

So there are two things I should do:

  • add a reset handler in “comment field shortcuts”
  • add a reset handler in fitTextarea.watch
posted by fregante almost 6 years ago

I can't reproduce anymore. fit-textarea has a reset handler now

posted by fregante over 5 years ago

Fund this Issue

$0.00
Funded

Pull requests