Skip to content

Commit

Permalink
Work around the problem where the focus is lost when closing
Browse files Browse the repository at this point in the history
  • Loading branch information
knu committed Nov 18, 2016
1 parent 26b1dc4 commit 2a347d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/assets/javascripts/components/core.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ $ ->

# Select2 Selects
$(".select2").select2(width: 'resolve')
$('select').on 'select2:close', ->
this.focus()

$(".select2-linked-tags").select2(
width: 'resolve',
Expand Down

0 comments on commit 2a347d3

Please sign in to comment.