-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Multi-select Dropdown does not clear value after "onAddItem" #1952
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Ah, yep. We should certainly clear the query an item is added. Easy fix. |
Can I try to fix this? |
@rushabhy absolutely! I'd suggest opening the PR as early as possible, just ping me when it is ready for review. |
Apologies, I've spoken too soon. It appears #1956 has already been opened. |
I just tested, and unfortunately this does not work when calling To provide some context: I'm trying to build a typical email "to" input, where you can type multiple email addresses. The manual call is for adding on space or comma as well. Here is the code:
|
Component instance methods are private APIs. A Instead, you should hook into the provided callbacks and update the provided props to achieve the same result. If you give a little more detail or a codepen (fork this one), I may be able to help guide you on how to do this in your case. |
Hi Levi, thanks, got you. The thing is, I have to hook into the internal ones to do what I want to. The behaviour I want to create is exactly the same as the "to" field of an email app like OSX Mail (or https://wetransfer.com).
Here is a pen with the current version of my component: https://codepen.io/anon/pen/PKRJEL. |
Steps
Expected Result
Input field will have a label with value "foo" and current typed value will be empty
Actual Result
Input field has a label with value "foo" and current typed value is still "foo"
Version
Breaks on 0.71.3+
Looks like it may have come from this commit: 62507c2#diff-609214949026e594dbfd98481664c928R705
Testcase
https://codepen.io/lott/pen/PKjQge
The text was updated successfully, but these errors were encountered: