@openproject/primer-view-components 0.76.0-rc.5c01c6cef → 0.76.0-rc.a008296f4

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.
@@ -117,9 +117,10 @@ let TreeViewElement = class TreeViewElement extends HTMLElement {
117
117
  }));
118
118
  if (!checkSuccess)
119
119
  return;
120
- const currentlyChecked = !this.getNodeCheckedValue(node);
121
- // disallow unchecking checked item in single-select mode
122
- if (!currentlyChecked) {
120
+ if (this.getNodeCheckedValue(node) === 'true') {
121
+ this.setNodeCheckedValue(node, 'false');
122
+ }
123
+ else {
123
124
  this.checkOnlyAtPath(path);
124
125
  }
125
126
  this.dispatchEvent(new CustomEvent('treeViewNodeChecked', {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openproject/primer-view-components",
3
- "version": "0.76.0-rc.5c01c6cef",
3
+ "version": "0.76.0-rc.a008296f4",
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",