Commit 9b91aae
committed
Do not reset selected item in ListBox
By some funny reason we are unable to select new item in the ListBox. I
have no idea why it worked before but apparently there were a problem in
state management logic.
Despite having plans to rewrite things in ListBox to make it simpler and
even more general, let's fix the logic now in order to properly manage
currently selected syntax.
In few words, the issue is that React components have asynchronus state
and apparently by the time 'componentWillReceiveProps' is called the
state is not updated. So we should not reset the state in this case.1 parent 73f427f commit 9b91aae
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | | - | |
30 | | - | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| |||
0 commit comments