bmcmahen/sancho

State discrepancy when using ComboBox

Opened this issue · 0 comments

Callbacks passed to onSelect with ComboBox don't seem to get updated. Here's a demo: https://codesandbox.io/s/compassionate-meadow-ssogf?fontsize=14&hidenavigation=1&theme=dark&file=/src/App.js

When you select an option from the ComboBox (by clicking) it creates an alert dependent on the variable someNum. After changing the value of someNum with the button, you can see that the alert still shows the initial state.