Don’t use :focus selector to store previously focused element

This commit is contained in:
Nathan Sobo
2014-10-17 18:37:28 -06:00
parent c64a4b7ca9
commit 5e8655fa60

View File

@@ -254,7 +254,7 @@ class SelectListView extends View
# Extended: Store the currently focused element. This element will be given
# back focus when {::cancel} is called.
storeFocusedElement: ->
@previouslyFocusedElement = $(':focus')
@previouslyFocusedElement = $(document.activeElement)
###
Section: Private