beyond-rails 0.0.211 → 0.0.212

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/src/js/components/Modal.js +7 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6407e05c31dcab18c92de68c77c556eecb6d50cf900a4981bd025e14c0dd2329
4
- data.tar.gz: 8754a1b9acc9ba94fcea7dce15c47de426a5eff296baae03dca5d4c122280540
3
+ metadata.gz: 66767efb242ab578214d8635453980ed11de8f8b7a726e44bd3637c5fb258b20
4
+ data.tar.gz: a87bb51ac683959f961452da0bb269903277681ea398639f7799ec03a447db8f
5
5
  SHA512:
6
- metadata.gz: 357f6a9f9537bf40ce92fbd7ff28f8b6a8575a842c0934c4b803115d44a5163c0441a792a2bb59ae107ff93a3cf6405038400b9cbe45cf6044a9a34bdcb44959
7
- data.tar.gz: 01fa95db2b046ab26f27db76e04166d67501c3d29a7eca762cb07487bd98865da31e239c3454ce41940c8417f2869563de86d21625d03f267dad6b8aeb30caae
6
+ metadata.gz: '08ecb52a279b63b7563b609d1e85dc0239de376005e9fe0339dd4d766916e930ffea6e3c8295400f54d07672f15e7a2cd632e499c820239a2296d02cab0c7e05'
7
+ data.tar.gz: 8212aa99a1ff83d5af31a9ac7ae1478d47e30b65341fa84e26aa0993a79a8388ac4d2005c87b4d9142b802b7118e66eb3935d2256329309ee725756c5f1bd7b4
@@ -75,6 +75,13 @@ export default class Modal {
75
75
  const div = document.createElement('div')
76
76
  div.innerHTML = html.trim()
77
77
  const dom = div.firstChild
78
+
79
+ // keep the id that is created by $.uniqModal()
80
+ const originalDomId = this.dom.id
81
+ if (originalDomId === 'beyond-uniq-modal') {
82
+ dom.id = originalDomId
83
+ }
84
+
78
85
  this.dom.parentNode.replaceChild(dom, this.dom)
79
86
 
80
87
  this.dom = dom
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beyond-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.211
4
+ version: 0.0.212
5
5
  platform: ruby
6
6
  authors:
7
7
  - kmsheng
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-09-24 00:00:00.000000000 Z
12
+ date: 2020-09-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sassc