effective_bootstrap 0.3.16 → 0.3.17

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e09385478bc3ad2f4da2dbd248e232745fc62d3f
4
- data.tar.gz: 98dfd6d6f1f370dd6866aaad7bdeff5491e8d552
3
+ metadata.gz: 82d56b3ce9fb868c32b156d3daa37aa908fd1246
4
+ data.tar.gz: af4af4ee0bd8457b0b2f445016acb75eb0a83301
5
5
  SHA512:
6
- metadata.gz: f5013c4370f56ce9461857d9a6ff0f16eec6814066c7f837825a49d6924a988b4bf82636bc322270b8757385761cda2f7dcba67df93edf1b60a93d1a7220e213
7
- data.tar.gz: 9148d825b28625729396f53b71259cde342498383769753c65adaf6eadccb3f398251b00d5aecc307098431e1fa8885850f95fe1f929efc2bfdfeaab58ec8637
6
+ metadata.gz: 1ef9d83a6eaf3d0c5328539ce0e63bc201820897337279a93da7726d24c098a4a48a8bb6aae9506133e24ba9c801847e22013fea20d3868ec9ac4964562786dc
7
+ data.tar.gz: 51a1af53771c0aa27cbe870a47831e781473cc37f581d27e5745cfded86f8d7fc721b8ddcce06b0a12cfcdb6cc08d68c16817b55d71b39d8d4c882c57b0c11b6
@@ -10,7 +10,9 @@ $(document).on 'select2:open', (event) ->
10
10
 
11
11
  # For tabbing through
12
12
  # https://stackoverflow.com/questions/20989458/select2-open-dropdown-on-focus
13
- $(document).on 'focus', '.select2', (event) -> $(this).siblings('select').select2('open')
13
+ $(document).on 'select2:focus', (event) ->
14
+ $select = $(event.target)
15
+ $select.select2('open') unless $select.prop('multiple')
14
16
 
15
17
  # effective_select custom reinitialization functionality
16
18
  # This is a custom event intended to be manually triggered when the underlying options change
@@ -2076,7 +2076,8 @@ S2.define('select2/selection/eventRelay',[
2076
2076
  'open', 'opening',
2077
2077
  'close', 'closing',
2078
2078
  'select', 'selecting',
2079
- 'unselect', 'unselecting'
2079
+ 'unselect', 'unselecting',
2080
+ 'focus'
2080
2081
  ];
2081
2082
 
2082
2083
  var preventableEvents = ['opening', 'closing', 'selecting', 'unselecting'];
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '0.3.16'.freeze
2
+ VERSION = '0.3.17'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.16
4
+ version: 0.3.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect