nkbt / react-height

Component-wrapper to determine and report children elements height
MIT License
180 stars 27 forks source link

About the height of the textarea #32

Closed programmer-yang closed 6 years ago

programmer-yang commented 7 years ago

hello, the author

this is my code:

<ReactHeight onHeightReady={h => console.log(h)}>
  <textarea />
</ReactHeight>

When I manually change its height, defaultValue didn't respond

nkbt commented 7 years ago

Not sure I understand correctly what you are trying to do... what defaultValue? it is not in your example. What do you mean by manually change its height? If you mean that you change textarea height in browser - then yes, react-height will not update dynamically.

programmer-yang commented 6 years ago

@nkbt I think this problem should be is in the mechanism of the textarea I later use react-textarea-autosize solved the problem thank you