Downshift: Downshift producing empty input on blur if nothing is selected

Created on 6 Sep 2018  路  2Comments  路  Source: downshift-js/downshift

  • downshift version: 2.1.4
  • node version: 10.7.0
  • npm (or yarn) version: 6.1.0

Relevant code or config
Any usage of downshift. I assume this behaviours is on purpose.

What you did:
After opening a page using downshift I input text into the downshift-input but instead of selecting an item I blur this input (click somewhere on the page).

What happened:
After blurring the input it will be empty again.

Reproduction repository:
Downshift examples have this behaviour.

Problem description:
Actually whenever changing the text of the input without selecting an item but blurring, it will revert back to the text of the still selected item. In case no item is selected it will be empty. This is expected behaviour (normal