@openproject/primer-view-components 0.61.1-rc.5810a1040 → 0.61.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.
@@ -26,16 +26,16 @@ export class CollapsibleElement extends HTMLElement {
26
26
  }
27
27
  hideAll() {
28
28
  // For whatever reason, setting `hidden` directly does not work on the SVGs
29
- this.arrowDown.removeAttribute('hidden');
30
- this.arrowUp.setAttribute('hidden', '');
29
+ this.arrowDown?.removeAttribute('hidden');
30
+ this.arrowUp?.setAttribute('hidden', '');
31
31
  for (const el of this.collapsibleElements) {
32
32
  el.hidden = true;
33
33
  }
34
34
  this.classList.add(`${this.baseClass}--collapsed`);
35
35
  }
36
36
  expandAll() {
37
- this.arrowUp.removeAttribute('hidden');
38
- this.arrowDown.setAttribute('hidden', '');
37
+ this.arrowUp?.removeAttribute('hidden');
38
+ this.arrowDown?.setAttribute('hidden', '');
39
39
  for (const el of this.collapsibleElements) {
40
40
  el.hidden = false;
41
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openproject/primer-view-components",
3
- "version": "0.61.1-rc.5810a1040",
3
+ "version": "0.61.1",
4
4
  "description": "ViewComponents of the Primer Design System for OpenProject",
5
5
  "main": "app/assets/javascripts/primer_view_components.js",
6
6
  "module": "app/components/primer/primer.js",