Closed klopez213 closed 2 years ago
When dependencies change in the useCallback() , combobox doesn't honor this update.
useCallback()
Combobox onChange should use the updated dependencies.
Link to a minimal repro: https://codesandbox.io/s/combobox-onchange-noformik-t55umm?file=/src/App.tsx
Expected Result: It should show the alert that the user selected the same skill. Actual Result: It re-sets the skill.
Didn't check if onBlur behaves the same way or not.
onBlur
Thanks for the issue @klopez213 this is now fixed in 1.37.1 🚀
Describe the bug (actual behavior)
When dependencies change in the
useCallback()
, combobox doesn't honor this update.Expected behavior
Combobox onChange should use the updated dependencies.
Reproduction
Link to a minimal repro: https://codesandbox.io/s/combobox-onchange-noformik-t55umm?file=/src/App.tsx
Steps to reproduce
Expected Result: It should show the alert that the user selected the same skill. Actual Result: It re-sets the skill.
Additional information:
Didn't check if
onBlur
behaves the same way or not.