ctrlplusb / react-sizeme

Make your React Components aware of their width and height!
MIT License
1.94k stars 92 forks source link

Sizable input lost focus #216

Open Slava96 opened 3 years ago

Slava96 commented 3 years ago

I have functionalComponent wrapping styledInput (from styled-components) inside (with key property). When i use it from another component directly, input works as expected (letters added, focus not lost)

But when i wrapped it with hook withSize - it lost focus on each letter append.

What's the problem? And how can i fix it?