Semantic-Org/Semantic-UI-React

Dropdown scroll position going top when adding options

Open

#3 721 ouverte le 26 juil. 2019

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)JavaScript (4 065 forks)batch import
help wantedneeds engineering

Métriques du dépôt

Stars
 (13 136 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Hello,

I did search in the 30+ issues opened but did not see anything similar. Here is the bug I've encountered :

Bug Report

When modifying options of a Dropdown while you are scrolling inside of it, the scroll position going full top.

Expected Result

Scroll staying on actual position

Actual Result

Scroll reseting to top

Version

SUIR@0.87.3

Testcase

In this Testcase, I simulated addition of elements when clicking on a button. FYI, in my reality case, I am doing an infinite scroll, which is adding elements when needed.

https://codesandbox.io/s/semantic-ui-react-example-1xvv7?fontsize=14

Guide contributeur