effective_form_inputs 1.1.13 → 1.1.14

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: aeb0181400a5d7e2f7cfdc65c37123497b73ea10
4
- data.tar.gz: 8a1e97eb165696ed7b7e59b470bc775eba9d6837
3
+ metadata.gz: 04a76eab3d3b21003e8a7fe142d2c77f946c87fc
4
+ data.tar.gz: 8cce52c396eb418c99c305bb2f00f623245db22e
5
5
  SHA512:
6
- metadata.gz: c8d40052e83487c71edbd6f305660a3b965a2becc9bffe6243aba6f40441bc773c6fcdd4a4158aa15c92e427b20415fc49997ad32d656d38aa91bd453c99f8ed
7
- data.tar.gz: a6c35017121e2308f56e004d0a6e20c9524de1ff564977ded55989939c635417631f4d021989cfb630b17268e38d4a3d9ef59313ed2af2210abdd209664f33e7
6
+ metadata.gz: 8733f1f2dc29e2b9ff4f12d65d35d3e1c92d1360471871e8b856d539484df5b2155312653b7d6588fd5086ec69774ec94350d2565c56939dbc3e7c8bf2fdfaac
7
+ data.tar.gz: a71b7a3ba00d0a06a0bab916c5c7598d4dca19bac66b00f7d35d1034eb5b07c07709b553f943117c0ae80a2c88cd795b993543fe2243e68c883b9e8cc90482cc
@@ -43,3 +43,9 @@ $(document).on 'change', "select.effective_select.polymorphic", (event) ->
43
43
 
44
44
  $select.siblings("input[type='hidden'][name$='_type]']").val(value.split('_')[0] || '')
45
45
  $select.siblings("input[type='hidden'][name$='_id]']").val(value.split('_')[1] || '')
46
+
47
+ # Fixes https://github.com/select2/select2/issues/3106
48
+ $(document).on 'select2:select', 'select', (event) ->
49
+ $el = $(event.params.data.element).detach()
50
+ $(this).append($el).trigger('change')
51
+
@@ -1,3 +1,3 @@
1
1
  module EffectiveFormInputs
2
- VERSION = '1.1.13'.freeze
2
+ VERSION = '1.1.14'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_form_inputs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.13
4
+ version: 1.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-08 00:00:00.000000000 Z
11
+ date: 2018-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails