Grid looses active page in selection mode when dataProvider is used

Hello.
I posted a bug Grid looses active window in selectable mode · Issue #3677 · vaadin/hilla · GitHub where you can see reproductable sources.

There is a video how the bug looks like Rapid.UfaNet.ru
My question is how to fix it?

Hilla 24.8.0

Temporary workaround is don’t deselect row when clicking on the same row:

const onSelectRow = (e: GridActiveItemChangedEvent<any>) => {
		const item = e.detail.value;
        // was selectedRow.value = item ?? null
		selectedRow.value = item ?? selectedRow.value;
	}

It helps, due to jumping goes when selected row changes from [selectedRow.value] -> [] or [] ->[selectedRow.value]