Skip to content

[client] Scroll to the top of the infinite list only on mount, not on each rerender.

Antoine requested to merge ZeHiro/kresus:scrolltop-search into master

This MR fixed the following problem:

  • In the report section, apply a filter over categories (let's say: all transaction without categories)
  • scroll down
  • change the category of a transaction so that the transaction is not expected to be displayed anymore (it does not match the search criteria)

Observed behavior before fix :

  • the transaction list is scrolled to the top.

Expected behavior :

  • the scroll is unchanged.

The fix allows to have the expected behavior.

Merge request reports

Loading