aleph icon indicating copy to clipboard operation
aleph copied to clipboard

BUG: Dropdown resets to top on UI refresh during re-index

Open monneyboi opened this issue 3 years ago • 1 comments

When i'm trying to add an entity type that's not yet in the list in an investigation, but whenever i scroll down, the dropdown keeps resetting to the top.

image

I think this happens because the investigation is being indexed, causing the UI to be refreshed every ~5? seconds, causing the dropdown to reset to the top.

monneyboi avatar Jul 25 '22 13:07 monneyboi

I think this happens because the investigation is being indexed, causing the UI to be refreshed every ~5? seconds, causing the dropdown to reset to the top.

Yes! Blueprint’s Select2 component will try to scroll the active option into view every time the component rerenders. If no option is selected, it tries to scroll the first option into view. Setting the scrollToActiveItem property to false solves this.

https://blueprintjs.com/docs/#select/select2

tillprochaska avatar Aug 23 '22 22:08 tillprochaska

@tillprochaska Fixed this, should be available in our next release.

Rosencrantz avatar Nov 08 '22 09:11 Rosencrantz