Skip to content
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

[Selection Dropdown] Disappearing selected option after entering and removing the incorrect text into search field #2824

Closed
mzygmunt opened this issue Aug 11, 2015 · 4 comments
Milestone

Comments

@mzygmunt
Copy link

Problem: Disappearing selected option after entering and removing the incorrect text into search field
JSFiddle: http://jsfiddle.net/eLhfshsp/2/
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.132 Safari/537.36
How to reproduce on JSFiddle:

  1. Select manually any language.
  2. Open dropdown and enter any incorrect text eg "adsfadsfadsfsda".
  3. Click outside the dropdown.
  4. Click on field.
    Now you see only one language and the message "No result found" on the dropdown lists.
    image

This same issue occurs when I'll define a default value for the hidden field.
JSFiddle: http://jsfiddle.net/eLhfshsp/3/

@jlukic jlukic added this to the 2.1 milestone Aug 11, 2015
@jlukic
Copy link
Member

jlukic commented Aug 11, 2015

Thanks for the clear test case and steps, I can confirm this is a bug.

@jlukic jlukic modified the milestones: 2.1.x, 2.1 Aug 11, 2015
jlukic added a commit that referenced this issue Aug 11, 2015
@jlukic
Copy link
Member

jlukic commented Aug 11, 2015

Fixed in 2.1

@jlukic jlukic closed this as completed Aug 11, 2015
jlukic added a commit that referenced this issue Aug 11, 2015
@mzygmunt
Copy link
Author

I checked solution commit "c9a26af" of the branch "next" and not everything is correct. The message "No result found" is not displayed, but still there is a problem with the selected item when you type some text in the search box.
How to do it again:

  1. Select an item.
  2. Open the dropdown again.
  3. Enter some text in the search box to occur "No result found".
  4. Click in the area outside the drodown.
  5. When you click on the field you see that you selected in step 1 element disappeared from the dropdown list.

@jlukic jlukic reopened this Aug 12, 2015
jlukic added a commit that referenced this issue Aug 12, 2015
…em and not re-display on cleared filter. Additionally fixes issue with forceSelection not working on pageLosesFocus #2824
jlukic added a commit that referenced this issue Aug 12, 2015
@jlukic
Copy link
Member

jlukic commented Aug 12, 2015

Thanks I appreciate your thoroughness in testing. It really helps out when I'm juggling issues.

Here's a fixed fiddle from next, should clear both test cases.
http://jsfiddle.net/t9vfxo5t/

@jlukic jlukic closed this as completed Aug 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants