Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Commit

Permalink
fix: return updated state
Browse files Browse the repository at this point in the history
  • Loading branch information
elsangedy committed Jul 2, 2019
1 parent 4501fbd commit a06ff07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/useDownshift.js
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ function useDownshift(params) {
}

const getStateAndHelpers = () => {
const { isOpen, inputValue, selectedItem, highlightedIndex } = state
const { isOpen, inputValue, selectedItem, highlightedIndex } = getState()
const { id, itemToString } = params

return {
Expand Down

0 comments on commit a06ff07

Please sign in to comment.