Open cwarden opened 4 months ago
When a List is rerendered, the first listitem is replaced. If it has focus, it loses focus. The other listitems don't have this problem.
Here's an example using the todomvc application.
I don't understand the code yet, but the problem appears to be in reconcileChildren, in which stableKey doesn't get set.
reconcileChildren
stableKey
36a9ad6395d5375aa11fa833edd816382472895c "fixes" the issue.
When a List is rerendered, the first listitem is replaced. If it has focus, it loses focus. The other listitems don't have this problem.
Here's an example using the todomvc application.