-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Dropdown] - Search dropdown enter and blur couses first option selection #4506
Comments
I can confirm this bug |
The jsfiddle testcase is empty. I created one example here: forceSelection: false is not an easy workaround for me because this allows to set a string which is not in the dropdown. Edit: it's also an issue on multiselect dropdowns as shown here |
Confirmed! |
I've gotten this as well |
Setting |
This Issue should be included into the next Release. |
We got the same issue in here. |
Try disabling I kind of regret the naming choices, as I might actually refactor it this way while deprecating the previous settings for it to make more sense. |
In previous releases it was possible to type a few characters into the dropdown search and confirm the first selected item with tab. What do i have to do to make this work again? |
…ement is unfiltered firstUnfiltered() forced change of selection even if previously selected element was visible. This meant that when tabbing through the field, the selected option was changed to first visible.
@juice |
@jlukic Hi Jack, thanks for the tip, but this works only 50 percent of the time. I love this project, but right now the Dropdown part is a problem for many week. We use Dropdowns on a page with many Form Fields, most of them are generated from select fields and some of them are remote searches. People want to type a few characters and tab to the next dropdown or text field. Right now, i have to choose between, dropdowns clear the current selection/add the first item to a multiselect or tab select is only working for some dropdowns if "forceSelection: false" is set, plus the typed characters are rendered over the selected text. i feel like, as a default dropdowns should behave like native select fields. if you click on a dropdown, the current selection should not be cleared, the grey highlight should sit on the last selected item. i hope you can follow me. The Dropdowns worked as aspected pre 2.2.x and now it is a step by step process to see that with every release something gets fixed and something else stops working. I hope you can bring back the dropdown magic. |
function firstUnfiltered |
@jlukic I did a little research and I see it's only for 'search multiple selection dropdown' and not for 'multiple selection dropdown', so it seems to be the combination of 'search' and 'multiple' where 'forceSelection: false' fails. I hope that helps. |
Hi @ajarti, I can’t seem to reproduce, can you please fork this JSFiddle to create a test case? |
@juice Thanks, the commit you linked looks good: |
Can anyone provide a JSfiddle showing this issue in the current version? I'm testing in latest with |
Oh hey.. this appears to be fixed in Apparently I noticed this on my own and fixed without linking back to this issue This will go out with And yes.. previous behavior was very annoying and incorrect, apologies. |
…enus are not touched. Fixes spacing on left dropdown icon
Steps to Reproduce
Enter and blur search selection dropdown with yet selected item.
Expected
The dropdown should keep previesly selected item.
Result
The dropdown selects the first item in the list.
Testcase
http://jsfiddle.net/ba7dkjx4/
WORKAROUND
forceSelection: false //but on search dropdown it should be default false
The text was updated successfully, but these errors were encountered: