react-sizeme icon indicating copy to clipboard operation
react-sizeme copied to clipboard

Sizable input lost focus

Open Slava96 opened this issue 4 years ago • 0 comments

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?

Slava96 avatar Jul 23 '21 12:07 Slava96