buildo/react-autosize-textarea

onResize not called if passed when component already mounted

Closed this issue · 0 comments

description

Image from Gyazo

how to reproduce

  • mount textarea with onResize={undefined}
  • pass a valid onResize at following render
  • trigger a resize
  • callback not called

specs

{optional: describe a possible fix for this bug, if not obvious}

misc

{optional: other useful info}