Skip to content

Commit 5283c71

Browse files
Bryon Keckaaronroberson
Bryon Keck
authored andcommitted
fix(dropdown): appendToBody focus on dropdown
Closes angular-ui#1003 chore(release): bump package version and update changelog
1 parent 3fd8ea4 commit 5283c71

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

dist/select.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* ui-select
33
* http://github.com/angular-ui/ui-select
4-
* Version: 0.14.7 - 2016-02-18T21:37:49.408Z
4+
* Version: 0.14.8 - 2016-02-18T21:50:31.589Z
55
* License: MIT
66
*/
77

dist/select.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* ui-select
33
* http://github.com/angular-ui/ui-select
4-
* Version: 0.14.7 - 2016-02-18T21:37:49.321Z
4+
* Version: 0.14.8 - 2016-02-18T21:50:31.512Z
55
* License: MIT
66
*/
77

@@ -1139,6 +1139,9 @@ uis.directive('uiSelect',
11391139
element[0].style.left = '';
11401140
element[0].style.top = '';
11411141
element[0].style.width = originalWidth;
1142+
1143+
// Set focus back on to the moved element
1144+
$select.setFocus();
11421145
}
11431146

11441147
// Hold on to a reference to the .ui-select-dropdown element for direction support.

dist/select.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/select.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/uiSelectDirective.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,9 @@ uis.directive('uiSelect',
265265
element[0].style.left = '';
266266
element[0].style.top = '';
267267
element[0].style.width = originalWidth;
268+
269+
// Set focus back on to the moved element
270+
$select.setFocus();
268271
}
269272

270273
// Hold on to a reference to the .ui-select-dropdown element for direction support.

0 commit comments

Comments
 (0)