-
The problem is : When a user uses the mouse to select an entry in the Autocomplete dropdown, the onBlur of the Combobox is automatically fired with the old value and the old value stays on the Combobox. It's autocomplete Combobox, so users can type or select from dropdown list. I need to verify inputs after user input is done. https://codesandbox.io/s/great-bhabha-8761h?file=/src/App.js |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Hey @ycaoT! Thanks for linking the CodeSandbox reproducing the issue. The reason you're seeing the old value logged when Because of this, we recommend using Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
I ended using Autocomplete component from material-ui. It provides a big benefit of differentiating inputValue and value, https://material-ui.com/components/autocomplete/#controllable-states; making it quite easy to handle and verify inputs. |
Beta Was this translation helpful? Give feedback.
-
This is actually a bug in Combobox that should be a fairly simple fix, after looking into it this morning. I'll post here again when it's been fixed. Sorry it took so long to discover. |
Beta Was this translation helpful? Give feedback.
-
Hi @ycaoT, thanks for your patience. We pushed a patch for this in 10.7.0. |
Beta Was this translation helpful? Give feedback.
Hi @ycaoT, thanks for your patience. We pushed a patch for this in 10.7.0.