[BUG] Delete character (0x7F) propagates to inputValue
when deleting a selected item
#1358
Labels
inputValue
when deleting a selected item
#1358
Uh oh!
There was an error while loading. Please reload this page.
downshift
version: 6.1.7node
version: 14.18.1npm
(oryarn
) version: yarn 1.22.15Description of the bug:
When the
useMultipleSelection
hook uses a controlledselectedItems
prop, the delete character (0x7F) gets outputted to the text input after deleting the last selected item.Code:
Here's a code sandbox with the sample code found in the docs but
selectedItems
is used instead ofinitialSelectedItems
:https://codesandbox.io/s/downshift-bug-controlled-multi-selection-dc1u7?file=/src/DropdownMultipleCombobox.js
Steps to reproduce:
Screencast.2022-02-07.04.31.00.mp4
The text was updated successfully, but these errors were encountered: