You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the useMultipleSelection hook uses a controlled selectedItems 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 of initialSelectedItems:
On MacOS I could not repro the issue. There is nothing in my input after deleting the items. Could it be related to os or hardware specific differences?
You're right. I forgot to add that I'm using Ubuntu 20.04.
I also just did a test on macOS and can confirm it works as expected. I've yet to test it on Windows so it may just be a Linux-specific problem for now.
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: