petyosi / react-virtuoso

The most powerful virtual list component for React
https://virtuoso.dev
MIT License
5.25k stars 301 forks source link

Focus lost when typing in an input on table row when using Table Virtuoso #1143

Closed tranchem closed 3 weeks ago

tranchem commented 3 weeks ago

Describe the bug

Maybe I am implementing wrong (or this is not supported) but seems focus is lost when typing in an input on a table.

Reproduction

https://codesandbox.io/p/sandbox/2hkpfq

To Reproduce

Steps to reproduce the behavior:

  1. Click on Input
  2. Typing

Expected behavior

Input wasn't lost focus

Screenshots

https://github.com/user-attachments/assets/ae19782c-438f-4e66-a3e9-ea8747b1eeaa

petyosi commented 3 weeks ago

https://github.com/petyosi/react-virtuoso/issues/715

tranchem commented 3 weeks ago

715

I read the context documentation, but i can't do it for my code. Sorry Can you make sample in my codesanbox. Please! Thank you so much!