lato 3.14.7 → 3.14.8

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: c5b3771be073f4d95535eecc8c2ea3b9804a008595a4a888e4a502d095fe97d7
4
- data.tar.gz: bc9f33dbcec742df3302b2e400bcdd39e2a82abe8fa8255b8fef3fb9fa557135
3
+ metadata.gz: b7a5fc0821fc0c4c0221e63511492e33a9314bf1191390c61976ebb1af70d6e4
4
+ data.tar.gz: 4e78f21c86a10c0ea54517e65ff81cb6a380496e0b0ec1c72994a3a558f5880a
5
5
  SHA512:
6
- metadata.gz: 0ee934fed00dc3921730aa39ede9695afd4139d109dcd762ed769523eee375f179e68b364b69679419e26c435ca6ae16fb9a9d9cf89c00dec9f5bd0faa0d3c91
7
- data.tar.gz: 1a5219655c1990e103fa2c5362d173b812d17fcd58cb0d031fc38ab0784e6bf1f199293d5edb20cbbab0558d4838236f9c923a2f7df1d9579cb4dfdb16f83cf9
6
+ metadata.gz: 5ac88fdeee151b4ddba181779e3fbe9346265adbac043548a02d50fa04d65a7e2bb28bbb47bc335b2da40b9182a1a552db5658f9fb100fcc6c00fe86b824869c
7
+ data.tar.gz: a217c3a7872cad406a4443caad7d47d6afe5b469143770314ac5e95f6a5edacdc38448122d2aaa1f9b83bf59aa90b8a42870841b6e60bb925ed6169a4f81be66
@@ -9,8 +9,9 @@ export default class extends Controller {
9
9
  this.modal = new bootstrap.Modal(this.element)
10
10
  Turbo.setConfirmMethod(this.customConfirm.bind(this))
11
11
 
12
- this.element.style.zIndex = 2001
13
12
  this.element.addEventListener('show.bs.modal', () => {
13
+ this.element.style.zIndex = 2001
14
+
14
15
  // update backdrop z-index to be sure is always above other modals
15
16
  setTimeout(() => { // use setTimeout because bsModalBackdropElement is not always ready after 'show.bs.modal' event
16
17
  const bsModalBackdropElement = this.modal._backdrop._element
@@ -32,9 +33,6 @@ export default class extends Controller {
32
33
  await new Promise(resolve => setTimeout(resolve, 100))
33
34
  }
34
35
 
35
- // add another await to ensure modal is fully hidden before returning
36
- await new Promise(resolve => setTimeout(resolve, 500))
37
-
38
36
  return this._result
39
37
  }
40
38
 
data/lib/lato/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lato
2
- VERSION = "3.14.7"
2
+ VERSION = "3.14.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lato
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.14.7
4
+ version: 3.14.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregorio Galante