beyond-rails 0.0.176 → 0.0.177

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/Tooltip.js +7 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b110f5abf7923ffc58e27fd1ac70c604b132500a44757c5c727ed1f025e63ca6
4
- data.tar.gz: 3c5c874387072b94bb579b918b0fe23b341fd08c0c71907f1d301ff38f6ddf69
3
+ metadata.gz: edb93ef99c3dedb899622911c44e1394c11892ec357817bd89f69437da2e2c28
4
+ data.tar.gz: 9ffa3851690aae9723208be83abba39743742e9413492563e739d360c26889fa
5
5
  SHA512:
6
- metadata.gz: 02d5c767a33aac3bcee01af7bcf577583b41d03968b8609e7a15456d78c8a748740315419e5b3efa1ef409a0adb347f65feb1792f7dc42483b8d7f1ac2e1ed9d
7
- data.tar.gz: 9d9c64b460194854d2608cf44497e28de8108c2e9c8ebfb8950e4494a3828a998b0011d05825849f101023f9d961cbb3973f4ff8e1d8c9490aeb69340b9d8b2b
6
+ metadata.gz: a720ab5f813ac0738f91f2a3f89d8a0c5e55d9869bbb129271cfa27438a9455cf9087cdd6f4eba207398076f3dfedd8abf9f13245fe5de701965b4c19059997c
7
+ data.tar.gz: e376485f65d1d0adde8bc7a40f1d9501b87111f53d7e294ee36dbbcb91246409c12880fe2d62857f235d34d4fe367df2647381ab2eb26baa37ba47b5457ec3b4
@@ -65,6 +65,13 @@ export default class Tooltip {
65
65
  const { dom, tooltip } = this
66
66
  if ('onmouseover' in dom) {
67
67
  this.addEvent(dom, 'mouseover', () => {
68
+
69
+ const msg = this.dom.dataset.msg || ''
70
+
71
+ if (msg.length === 0) {
72
+ return
73
+ }
74
+
68
75
  this.setTooltipMsg()
69
76
 
70
77
  tooltip.style.opacity = 0
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.176
4
+ version: 0.0.177
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-08-11 00:00:00.000000000 Z
12
+ date: 2020-08-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sassc