@vaadin/component-base 24.9.0-alpha2 → 24.9.0-beta1

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/component-base",
3
- "version": "24.9.0-alpha2",
3
+ "version": "24.9.0-beta1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,10 +38,10 @@
38
38
  "lit": "^3.0.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@vaadin/chai-plugins": "24.9.0-alpha2",
42
- "@vaadin/test-runner-commands": "24.9.0-alpha2",
41
+ "@vaadin/chai-plugins": "24.9.0-beta1",
42
+ "@vaadin/test-runner-commands": "24.9.0-beta1",
43
43
  "@vaadin/testing-helpers": "^1.1.0",
44
44
  "sinon": "^18.0.0"
45
45
  },
46
- "gitHead": "dd99dece1b54942ab0e421892b089e506822c5f5"
46
+ "gitHead": "5f6e6e33217fef06e5d5cc52baa4d760969ef1e4"
47
47
  }
package/src/define.js CHANGED
@@ -13,7 +13,7 @@ function dashToCamelCase(dash) {
13
13
 
14
14
  const experimentalMap = {};
15
15
 
16
- export function defineCustomElement(CustomElement, version = '24.9.0-alpha2') {
16
+ export function defineCustomElement(CustomElement, version = '24.9.0-beta1') {
17
17
  Object.defineProperty(CustomElement, 'version', {
18
18
  get() {
19
19
  return version;
@@ -51,6 +51,9 @@ export class TooltipController extends SlotController {
51
51
  tooltipNode.shouldShow = this.shouldShow;
52
52
  }
53
53
 
54
+ if (!this.manual) {
55
+ this.host.setAttribute('has-tooltip', '');
56
+ }
54
57
  this.__notifyChange(tooltipNode);
55
58
  tooltipNode.addEventListener('content-changed', this.__onContentChange);
56
59
  }
@@ -63,8 +66,10 @@ export class TooltipController extends SlotController {
63
66
  * @override
64
67
  */
65
68
  teardownNode(tooltipNode) {
69
+ if (!this.manual) {
70
+ this.host.removeAttribute('has-tooltip');
71
+ }
66
72
  tooltipNode.removeEventListener('content-changed', this.__onContentChange);
67
-
68
73
  this.__notifyChange(null);
69
74
  }
70
75