[BUG] Sometimes done() is not working when scroll was not needed

Author: eugene-g13Created Oct 9, 2025Updated Jan 17, 2026
Labelsbug

Describe the bug

				tableVirtuosoRef.current?.scrollIntoView({
					index: nextIndex,
					behavior: 'auto',
					done: () => {
						setCurrentItemIndex(nextIndex);
					},
				});

done: () => { setCurrent...} is not working when table is just focused, first row is selected , but no scroll was actually needed.

Expected behavior

    /**
     * Will be called when the scroll is done, or immediately if no scroll is needed.
     */
    done?: () => void;

Desktop (please complete the following information):

  • OS: iOs
  • Browser Chrome
  • React 18