beyond-rails 0.0.278 → 0.0.279

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/Btn.js +7 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 357f7181d6ead420e1734b599acbc3fdf635fcf665be35bbb26e37796e6d3eb5
4
- data.tar.gz: 58958b9fe36351364410b06c08822e1963f8bd02ee9a46bfab08353a1ef9d24a
3
+ metadata.gz: 15297937ea1d1c28d437fe383e3c56b7f2f7c67541c38aaea98e72d1bce1ccef
4
+ data.tar.gz: fd0d6b35386c60d9fd6e9f392c4f24f47ceca13b3f6aab25a1349333c7037e89
5
5
  SHA512:
6
- metadata.gz: be99024014dda5554c501d5ac151e91a3107d92970f16de660154124b091e384f9d463a2899ec498d5f255aacdd3050ebd5c1e9f8c23b325a42019f0c6049689
7
- data.tar.gz: 2af808b2f3510ce0901ec556a2ea3b19edd8a73e7e65dd511d19c8e81ade97f04dac88adc715d94f113ca0bc42d3a61393dd7196f829201deb86fa5781388a7d
6
+ metadata.gz: 427e1a00e3963ac3fa025ba83a0b436ad3c9c85e0cb1171640ffe8ac0bb0f0ed845864bee01644356710299f3685851a7da7445a388a6789b84ed300a83de398
7
+ data.tar.gz: 217b0709aad9b5658554fd994381589acbc8f62c6fb1169941d85f1d9e9735d4e7c3493631df76f5b944ff87473ee6f61afe9682c119ae07848ab44c9294c5dc
@@ -12,7 +12,7 @@ export default class Btn {
12
12
 
13
13
  showLoader() {
14
14
  const { dom } = this
15
- this._innerHtml = dom.innerHTML
15
+ this.innerHtml = dom.innerHTML
16
16
  dom.style.height = toPixel(dom.offsetHeight)
17
17
  dom.style.width = toPixel(dom.offsetWidth)
18
18
  dom.innerHTML = `
@@ -31,7 +31,12 @@ export default class Btn {
31
31
  const { dom } = this
32
32
  dom.style.removeProperty('width')
33
33
  dom.style.removeProperty('height')
34
- dom.innerHTML = this._innerHtml
34
+
35
+ const { innerHtml } = this
36
+
37
+ if (innerHtml) {
38
+ dom.innerHTML = innerHtml
39
+ }
35
40
  }
36
41
 
37
42
  setLoading(loading) {
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.278
4
+ version: 0.0.279
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: 2021-01-25 00:00:00.000000000 Z
12
+ date: 2021-01-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sassc