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

Commit 46dbfa3

Browse files
Fixes #1408
fix: stop <select> from closing Stop <select> from closing when focusing it from ui-select Closes #1408
1 parent feefac9 commit 46dbfa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/uiSelectDirective.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ uis.directive('uiSelect',
151151

152152
if (!contains && !$select.clickTriggeredSelect) {
153153
//Will lose focus only with certain targets
154-
var focusableControls = ['input','button','textarea'];
154+
var focusableControls = ['input','button','textarea','select'];
155155
var targetController = angular.element(e.target).controller('uiSelect'); //To check if target is other ui-select
156156
var skipFocusser = targetController && targetController !== $select; //To check if target is other ui-select
157157
if (!skipFocusser) skipFocusser = ~focusableControls.indexOf(e.target.tagName.toLowerCase()); //Check if target is input, button or textarea

0 commit comments

Comments
 (0)