aboutsummaryrefslogtreecommitdiffstats
path: root/ui/spinner.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2015-03-09 16:03:22 -0400
committerScott González <scott.gonzalez@gmail.com>2015-03-12 07:35:27 -0400
commitf33027840cdac5152599da66635981bbe68c6bda (patch)
treea52f4063e0a2aab02af24d26eee590eba797882e /ui/spinner.js
parent6111b17710ab4e14bb119e735de9cfa9285badab (diff)
downloadjquery-ui-f33027840cdac5152599da66635981bbe68c6bda.tar.gz
jquery-ui-f33027840cdac5152599da66635981bbe68c6bda.zip
Core: Add methods to work around IE active element bugs
Closes gh-1478
Diffstat (limited to 'ui/spinner.js')
-rw-r--r--ui/spinner.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/spinner.js b/ui/spinner.js
index 058694960..01642f2b8 100644
--- a/ui/spinner.js
+++ b/ui/spinner.js
@@ -160,10 +160,10 @@ return $.widget( "ui.spinner", {
// If the input is focused then this.previous is properly set from
// when the input first received focus. If the input is not focused
// then we need to set this.previous based on the value before spinning.
- previous = this.element[0] === this.document[0].activeElement ?
+ previous = this.element[0] === $.ui.safeActiveElement( this.document[0] ) ?
this.previous : this.element.val();
function checkFocus() {
- var isActive = this.element[0] === this.document[0].activeElement;
+ var isActive = this.element[0] === $.ui.safeActiveElement( this.document[0] );
if ( !isActive ) {
this.element.focus();
this.previous = previous;