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

Search drop-down keeps re-opening when selecting option on mobile device #4693

Closed
malishew opened this issue Oct 27, 2016 · 2 comments
Closed

Comments

@malishew
Copy link

Hi,

It seems there is issue with search selection dropdown where after typing part of search condition and selecting one of possible items the search menu will reappear and resets selection on mobile device.

Just to note, this does not happen on desktop device when either scrolling + clicking on item or going through options using up/down arrows and pressing enter key.

How to replicate:
Can be replicated on Semantic UI example page:
http://semantic-ui.com/modules/dropdown.html

Under section:
Search Selection
A selection dropdown can allow a user to search through a large list of choices.

  • While on mobile device go to previously mentioned section
  • Type in search condition such as "Bur"
  • Click on item "Burma"
  • Dropdown reappears and clicking outside re-selects first item from menu.

See example here:
http://www.tiikoni.com/tis/view/?id=3545d96
ezgif com-video-to-gif

Tested on:

@juice
Copy link

juice commented Oct 28, 2016

#4506

@malishew
Copy link
Author

@juice
Thanks, I've looked at the thread before and somehow only noticed 'forceSelection: false' for specific component. Initialising drop-down with:
$('#ID').dropdown({
apiSettings: {
url: URL
},
forceSelection: false
});
didn't do the trick.

However setting:
$.fn.dropdown.settings.selectOnKeydown = false;
$.fn.dropdown.settings.forceSelection = false;

does the charm.

Much appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants