'Add User' button gets disabled when editing the input box without adding a new member
The "Add User" button becomes disabled after editing the input box to add users. This issue occurs when you've already selected some users to add to the input box, then start typing another user but subsequently delete the last text you entered using the backspace key. The "Add User" button remains disabled, and it's only re-enabled if you add another user or remove one of the existing users by clicking the remove item (the cross icon).
Expected behavior
When deleting some text you were about to add, the "Add User" button should remain enabled.
Current behavior
The "Add User" button becomes disabled and stays that way until you add another user or remove an existing user.
Steps to reproduce
- Go to the producer page and open the "Book Members" modal
- Add multiple users
- Start typing to add a new user
- Delete the last text you entered using the backspace key
- Example in the screencast
Screencast_from_20.10.23_11_34_43.PD_CEST
Environment
Tested in Mozilla Firefox, Chromium and Brave in Ubuntu 22.04
Possible solution
[Not required. Suggest a fix for the bug]