Fix multi Async option issues#1629
Fix multi Async option issues#1629w3-3w wants to merge 8 commits intoJedWatson:masterfrom w3-3w:feature/add_option_for_multiAsync
Conversation
whether clear option list or not on selection
By now, on blur, the pulldown will be closed with options state unmodified. If we focus on it again, the previous options will be shown, even if nothing was typed as keyword. This makes it looks inconsistent.
|
I've tested this PR and even if I set |
|
@gazpachu By |
|
@w3-3w the options on a multi select shouldn't be cleared ever. Only when the user clicks on the 'x' icon. ATM, in rc2 and rc3, the options are gone whenever a new search starts. The only become visible again if the search starts with the same letter as the options that were previously selected. For this reason, I had to disable the search funtionality. I'm not sure if this is exactly the same issue you guys are talking about in this thread. |
|
No need to click outside the select, the issue happens just by starting a new search after having added a few options on the async multi select. |
|
@w3-3w Nevermind my previous messages. I've found the issue. It turns out that I was reloading all the options because of the
|
didn't realize the presence of onBlurResetsInput prop.
|
Does this fix the complete issue here: #1514? |
|
@hsingh23 No. This PR focuses on option display behaviors. |
|
any progress? |
|
Can someone merge this PR please. I'm waiting for it for a long time now. |
|
This would be awesome, thanks @w3-3w! It would be great if this could be merged (but there's |
|
@w3-3w i'm using your branch, and the |
|
I've tried downgrading to |
|
@w3-3w Thank you for creating this PR. I have some constructive feedback for you:
|
|
Thanks for the PR @w3-3w I believe all of the fixes you've included here have been implemented separately (and slightly differently, see the changelog) but this has been a great reference. For what it's worth in the future, separate PRs for each feature will make it easier to merge 🙂 |
The first two commits of this PR fixes #1542 and #1561 respectively.
The 3rd ~ 5th commit resolves an inconsistency problem as described in commit message.
As in #1289 , clearing options after selection for multi Async has been a default behavior. I introduced a new prop
clearOptionsOnSelection, which defaults to true. For those who still need to keep options on selection, set it tofalseand it will behave as it did in v1.0.0-rc.2.