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

Commit d5e30fb

Browse files
committed
fix: corrects out of scope variable
1 parent 0271988 commit d5e30fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/uiSelectDirective.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,12 @@ uis.directive('uiSelect',
167167
}
168168

169169
if (!contains && !$select.clickTriggeredSelect) {
170+
var skipFocusser;
170171
if (!$select.skipFocusser) {
171172
//Will lose focus only with certain targets
172173
var focusableControls = ['input','button','textarea','select'];
173174
var targetController = angular.element(e.target).controller('uiSelect'); //To check if target is other ui-select
174-
var skipFocusser = targetController && targetController !== $select; //To check if target is other ui-select
175+
skipFocusser = targetController && targetController !== $select; //To check if target is other ui-select
175176
if (!skipFocusser) skipFocusser = ~focusableControls.indexOf(e.target.tagName.toLowerCase()); //Check if target is input, button or textarea
176177
} else {
177178
skipFocusser = true;

0 commit comments

Comments
 (0)