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

[Dropdown] Prevent focus on Search Selection Dropdown when calling dropdown('show') #1040

Closed
WK6-work opened this issue Sep 26, 2019 · 3 comments
Labels
lang/javascript Anything involving JavaScript type/feat Any feature requests or improvements
Milestone

Comments

@WK6-work
Copy link

Feature Request

Description

When I call $.dropdown('show') to Search Selection Dropdown, the dropdown focuses and scrolls automatically.

I would like to control focus and scroll events to the dropdown.

Example

https://jsfiddle.net/ad1h8u03/

Version

2.7.8

@y0hami
Copy link
Member

y0hami commented Sep 26, 2019

Could you please elaborate more on what you mean exactly as I am a bit confused what your trying to achieve.

@y0hami y0hami added the state/awaiting-more-info Any issue or pull request which is awaiting more info label Sep 26, 2019
@WK6-work
Copy link
Author

I would like to prevent auto-scrollilng in the right-side example in jsfiddle.
For example by setting a focus option on $.dropdown('show').

e.g.

$('#search-selection-dropdown').dropdown('show' { focus: false });

dropdown-auto-scroll

@lubber-de lubber-de added state/has-pr An issue which has a related PR open type/feat Any feature requests or improvements lang/javascript Anything involving JavaScript and removed state/awaiting-more-info Any issue or pull request which is awaiting more info labels Oct 2, 2019
@lubber-de lubber-de added this to the 2.8.0 milestone Oct 2, 2019
@lubber-de
Copy link
Member

Made it possible by #1052
See your adjusted jsfiddle here https://jsfiddle.net/ragfLzky/

@y0hami y0hami added tag/next-release/nightly Any issue which has a corresponding PR which has been merged and is available in the nightly build and removed state/has-pr An issue which has a related PR open labels Nov 5, 2019
@y0hami y0hami closed this as completed in 34fa8ce Nov 14, 2019
@y0hami y0hami removed the tag/next-release/nightly Any issue which has a corresponding PR which has been merged and is available in the nightly build label Nov 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang/javascript Anything involving JavaScript type/feat Any feature requests or improvements
Projects
None yet
Development

No branches or pull requests

3 participants