-
-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
According to the componentDidUpdate
lifecycle method,
if (!isEqual(prevProps.items, this.props.items)) {
.....
The cursor will be reset everytime the items "change" which is not expected
in some cases.
For example, I just change the label
properties which is actually displayed
on the screen, without changing value
which is the key of the item and represents
real data. If so, the cursor is still reset.
So, I wonder if the condition could be changed. For example, just compare the value
s
of the items, or at least the length of the array.
Also, the control may be given to the developer by passing some prop as a function of shouldResetCursor
?
Metadata
Metadata
Assignees
Labels
No labels