React-window: Input always losing focus when setNewState to data array

Created on 13 Feb 2020  路  2Comments  路  Source: bvaughn/react-window

please try this codesand box, when you key something on textbox, it loses focus

https://codesandbox.io/s/react-window-x9gwc

Most helpful comment

Don't define your item renderer inline. It will get recreated each time the parent component re-renders which will mess with text selection apparently.

https://codesandbox.io/s/react-window-5yzbr

All 2 comments

Don't define your item renderer inline. It will get recreated each time the parent component re-renders which will mess with text selection apparently.

https://codesandbox.io/s/react-window-5yzbr

Was this page helpful?
0 / 5 - 0 ratings

Related issues

delateurj picture delateurj  路  3Comments

brunolemos picture brunolemos  路  3Comments

davalapar picture davalapar  路  3Comments

maynir picture maynir  路  4Comments

lifeisaloha picture lifeisaloha  路  3Comments