@ewc-lib/ewc-popovers 2.1.0-alpha → 2.1.1-alpha

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.
@@ -17,7 +17,7 @@ export default class Element extends HTMLElement {
17
17
 
18
18
  connectedCallback(ignoreCheck) {
19
19
  if(this.#isInitialized) { return } else { this.#isInitialized=true }
20
- this.setAttribute("ewc-version", "2.1.0-alpha") // please always keep in sync with version in package.json
20
+ this.setAttribute("ewc-version", "2.1.1-alpha") // please always keep in sync with version in package.json
21
21
  if(ignoreCheck || this.childElementCount===2) {
22
22
  // please see also comment in html.js
23
23
 
@@ -56,11 +56,9 @@ export default class Element extends HTMLElement {
56
56
 
57
57
  set visibility(val) {
58
58
  if(val==true) {
59
- this.#toggleElement.setAttribute("tooltip-suppressed", "true")
60
59
  this.#popover.openPopover()
61
60
  this.#popover.positionPopover()
62
61
  } else {
63
- this.#toggleElement.setAttribute("tooltip-suppressed", "false")
64
62
  this.#popover.closePopover()
65
63
  }
66
64
  }
@@ -107,6 +107,7 @@ export default class Popover {
107
107
  openPopover() {
108
108
  this.toggle.setAttribute('aria-expanded', 'true');
109
109
  this.container.style.display="block"
110
+ this.toggle.setAttribute("tooltip-suppressed", "true")
110
111
  }
111
112
 
112
113
  closePopover() {
@@ -114,6 +115,7 @@ export default class Popover {
114
115
  // Reset all the selectors and styles
115
116
  this.resetStyles();
116
117
  this.container.style.display="none"
118
+ this.toggle.setAttribute("tooltip-suppressed", "false")
117
119
  }
118
120
 
119
121
  /**
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@ewc-lib/ewc-popovers",
3
3
  "description": "Monorepo for EWCL popover WebComponents",
4
4
  "//": "please always keep version in sync with version info in the sourcecode",
5
- "version": "2.1.0-alpha",
5
+ "version": "2.1.1-alpha",
6
6
  "workspaces": [
7
7
  "ewc-popover",
8
8
  "ewc-popover-sharing"
package/readme.md CHANGED
@@ -127,3 +127,6 @@ Before the 2 popover components were grouped together into this monorepo, they e
127
127
 
128
128
  - 2.1.0-alpha
129
129
  - use a child's optional "tooltip-suppressed" functionality
130
+
131
+ - 2.1.1-alpha
132
+ - addendum "tooltip-suppressed" functionality