Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

Append skipFocusser argument of select as option #401

Closed
FSou1 opened this issue Nov 14, 2014 · 3 comments
Closed

Append skipFocusser argument of select as option #401

FSou1 opened this issue Nov 14, 2014 · 3 comments

Comments

@FSou1
Copy link

FSou1 commented Nov 14, 2014

After i select item (with mouse click) from drop down list, focus still stay on select2, because ng-click callback function now doesn't pass skipFocusser argument in $select.select:

attr('ng-click', '$select.select(' + $select.parserResult.itemName + ')')

In this case, i have to use it like this:

.attr('ng-click', '$select.select(' + $select.parserResult.itemName + ', true)');

@FSou1
Copy link
Author

FSou1 commented Nov 14, 2014

By the way, there is the same behavior when i close drop drown list without selecting any item (click anywhere out of select)- control is continuing to be focused

@jossemarGT
Copy link

I'm still fighting with this, but you can check #432 (comment)

aaronroberson added a commit that referenced this issue Mar 15, 2016
feat(skipFocuser): add skip focusser option

Add a skipFocusser option to configure skipping the focusser after selecting an item.

Closes #869 #401 #818 #603 #432
@wesleycho
Copy link
Contributor

Closing as a duplicate of a couple of issues - #432 looks like the most robust one.

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