nfg_ui 0.10.1 → 0.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a089ea3a2d1720e00c7ca5d93fd14143d4e8d21db3b5d09f5b6ee59c0d8982b
4
- data.tar.gz: 20dd7acabe2336ff5e26e1214b2dfb60f0835cd8474a484e3c7332936ac100e0
3
+ metadata.gz: 852acec67711b83dd400fd024cae6149a2f2e90d1adf16a41034b52f18d2d55b
4
+ data.tar.gz: b6ad3c08dff17f5c84f0f8cd2fbb7639c2ca25a0f68eaebf3bc4a20607ff04f3
5
5
  SHA512:
6
- metadata.gz: f9faa6ae99e5860950471f7f98785a72615ab2da4d0f1a8ea36db7db90f723fd5a10013da89cae920e55c5e89d293ab8f53f5c14ea257962dcedf910b1dae153
7
- data.tar.gz: 041d02f59af7d4892ed1922f33c43d800db7bc02906daf9c931d05ef9381f75328b6ec41fa905070f8ab8bec96c09d0d6ce1203238a506a2cb436919e58bde6e
6
+ metadata.gz: 3322a9dff7beff9a10c55da207c9a26b8279798f6d88583a7b1d91a16743f87831ce1541d6b8fba4c1d1bdf4f29ab7ea71239a45fffb976cf0e1694063e4b1c8
7
+ data.tar.gz: f49b3d5170957d8a3e048698559939490ceb263e471b4ee30526b84a5623c4dab81e5ea6c52c1c9d40015576ba19b0574ebeb961dce3ce8207a9b47e522703ec
@@ -1,11 +1,15 @@
1
1
  init_plugin = (parent) ->
2
2
  return unless $('select.select2').length
3
-
3
+
4
4
  # Just incase anything's changed, refresh select2 via triggering a 'change' event
5
5
  parent.find('select.select2').trigger 'change'
6
6
 
7
7
  parent.find('select.select2').select2
8
- dropdownParent: parent
8
+ # Find the explicit parent to help resolve issues
9
+ # with Safari where setting $('body') caused the
10
+ # page to jump to the bottom when interacting
11
+ # with the select2 menu.
12
+ dropdownParent: parent.find('select.select2').parent()
9
13
 
10
14
  $ ->
11
15
  doc = $(document)
@@ -13,7 +17,7 @@ $ ->
13
17
  modal = $('.modal')
14
18
 
15
19
  init_plugin body
16
-
20
+
17
21
  # use 'shown' tense on modal event
18
22
  # otherwise, no guarantee that the select menu will be on the page yet
19
23
  doc.on 'shown.bs.modal', '.modal', (e) ->
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NfgUi
4
- VERSION = '0.10.1'
4
+ VERSION = '0.10.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nfg_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Roehm
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-12-11 00:00:00.000000000 Z
12
+ date: 2019-12-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bootstrap