@vaadin/tooltip 25.0.0 → 25.0.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/tooltip",
3
- "version": "25.0.0",
3
+ "version": "25.0.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -34,24 +34,24 @@
34
34
  ],
35
35
  "dependencies": {
36
36
  "@open-wc/dedupe-mixin": "^1.3.0",
37
- "@vaadin/a11y-base": "~25.0.0",
38
- "@vaadin/component-base": "~25.0.0",
39
- "@vaadin/markdown": "~25.0.0",
40
- "@vaadin/overlay": "~25.0.0",
41
- "@vaadin/popover": "~25.0.0",
42
- "@vaadin/vaadin-themable-mixin": "~25.0.0",
37
+ "@vaadin/a11y-base": "~25.0.1",
38
+ "@vaadin/component-base": "~25.0.1",
39
+ "@vaadin/markdown": "~25.0.1",
40
+ "@vaadin/overlay": "~25.0.1",
41
+ "@vaadin/popover": "~25.0.1",
42
+ "@vaadin/vaadin-themable-mixin": "~25.0.1",
43
43
  "lit": "^3.0.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@vaadin/chai-plugins": "~25.0.0",
47
- "@vaadin/test-runner-commands": "~25.0.0",
46
+ "@vaadin/chai-plugins": "~25.0.1",
47
+ "@vaadin/test-runner-commands": "~25.0.1",
48
48
  "@vaadin/testing-helpers": "^2.0.0",
49
- "@vaadin/vaadin-lumo-styles": "~25.0.0",
49
+ "@vaadin/vaadin-lumo-styles": "~25.0.1",
50
50
  "sinon": "^21.0.0"
51
51
  },
52
52
  "web-types": [
53
53
  "web-types.json",
54
54
  "web-types.lit.json"
55
55
  ],
56
- "gitHead": "c979f7ca278b6412095176ada230eb07eb4456bf"
56
+ "gitHead": "ced28c07a8abee586510349b312452c8a555fd10"
57
57
  }
@@ -527,6 +527,11 @@ export const TooltipMixin = (superClass) =>
527
527
  return;
528
528
  }
529
529
 
530
+ // Do not open if there is no content.
531
+ if (this._overlayElement.hasAttribute('hidden')) {
532
+ return;
533
+ }
534
+
530
535
  this.__focusInside = true;
531
536
 
532
537
  if (!this.__isTargetHidden && (!this.__hoverInside || !this.opened)) {
@@ -583,6 +588,11 @@ export const TooltipMixin = (superClass) =>
583
588
  return;
584
589
  }
585
590
 
591
+ // Do not open if there is no content.
592
+ if (this._overlayElement.hasAttribute('hidden')) {
593
+ return;
594
+ }
595
+
586
596
  if (this.__hoverInside) {
587
597
  // Already hovering inside the element, do nothing.
588
598
  return;
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/tooltip",
4
- "version": "25.0.0",
4
+ "version": "25.0.1",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/tooltip",
4
- "version": "25.0.0",
4
+ "version": "25.0.1",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {