Closed Darper closed 6 years ago
Steps to reproduce:
Expected result: Dropdown closes as "Minnesota" option was already selected. Actual result: Stack trace ...
496 | }, 497 | () => { 498 | if (!this.state.active && this.state.tempIndex !== null) { > 499 | const newValue = this.state.options[this.state.tempIndex].props | ^ 500 | .value; 501 | this.optionOnClick(null, newValue, this.state.tempIndex); 502 | }
Suggested fix: Reset tempIndex to null in _handleChange setState call.
this issue is fixed by the latest commit in issue #762 since two issues are closely related.
Steps to reproduce:
Expected result: Dropdown closes as "Minnesota" option was already selected. Actual result: Stack trace ...
Suggested fix: Reset tempIndex to null in _handleChange setState call.