Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Commit 2fbafa6

Browse files
committed
[fixed] Corrected reference to old state.value
1 parent 0166c0f commit 2fbafa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Autocomplete.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ let Autocomplete = React.createClass({
9595
this.keyDownHandlers[event.key].call(this, event)
9696
else {
9797
const { selectionStart, value } = event.target
98-
if (value === this.state.value)
98+
if (value === this.props.value)
9999
// Nothing changed, no need to do anything. This also prevents
100100
// our workaround below from nuking user-made selections
101101
return

0 commit comments

Comments
 (0)