@hashicorp/design-system-components 0.12.11 → 0.12.12

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @hashicorp/design-system-components
2
2
 
3
+ ## 0.12.12
4
+
5
+ ### Patch Changes
6
+
7
+ - [#456](https://github.com/hashicorp/design-system/pull/456) [`d0634a62`](https://github.com/hashicorp/design-system/commit/d0634a622b50c18d713afdc2fdb97a8e7a4df6af) Thanks [@alex-ju](https://github.com/alex-ju)! - Fix computation error on disclosure utility
8
+
3
9
  ## 0.12.11
4
10
 
5
11
  ### Patch Changes
@@ -18,7 +18,12 @@ export default class HdsDisclosureComponent extends Component {
18
18
  if (!this.toggleRef) {
19
19
  this.toggleRef = event.currentTarget;
20
20
  }
21
- this.isOpen = !this.isOpen;
21
+ // we're using an explicit conditional statement to toggle the `isOpen` property to avoid a backtracking rerender assertion caused by setting and getting a `@tracked` property in the same computation
22
+ if (this.isOpen) {
23
+ this.isOpen = false;
24
+ } else {
25
+ this.isOpen = true;
26
+ }
22
27
  // we explicitly apply a focus state to the toggle element to overcome a bug in WebKit (see b8abfcf)
23
28
  this.toggleRef.focus();
24
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hashicorp/design-system-components",
3
- "version": "0.12.11",
3
+ "version": "0.12.12",
4
4
  "description": "HashiCorp Design System Components",
5
5
  "keywords": [
6
6
  "hashicorp",