Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Display Dropdown on focus? #12

Closed
sebackend opened this issue Mar 2, 2017 · 2 comments
Closed

Display Dropdown on focus? #12

sebackend opened this issue Mar 2, 2017 · 2 comments

Comments

@sebackend
Copy link

Hi there, thanks so much for this plugin, i really love it 馃槃

I was looking for the option present in the previous version displayDropdownOnFocus but can麓t find something similar in the project page

Could you include it in the future?

Thanks!

@dragonofmercy
Copy link
Owner

Hi !
You can do like this:

$('.tokenize-sample-demo1').on('tokenize:select', function(container){
    $(this).tokenize2().trigger('tokenize:search', [$(this).tokenize2().input.val()]);
});

@aberel
Copy link

aberel commented Apr 3, 2017

Hi, I was looking the same old option "displayDropdownOnFocus", now I found your response.
It wouldn't be better to add this code inside the plugin? Just like the older version.
I mean, this code

$('.tokenize-sample-demo1').on('tokenize:select', function(container){
	$(this).tokenize2().trigger('tokenize:search', [$(this).tokenize2().input.val()]);
});

Thanks.

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

No branches or pull requests

3 participants