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.
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?